Business rules

Shaik22
Tera Expert

Hello,

 

Can anyone please let me know the exact answer i searched in community and googled it but i didn't find it.

 

1.Will current can be used in after business rule?If no, what is the alternative.

2.Using query BR and ACL we can restrict data which way you would prefer?why?

 

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@Shaik22 

 

1. Will current can be used in after business rule?If no, what is the alternative.

Answer: current can be used in both before and after business rules. If you are referring to current.update() then it is not needed in before business rule. In case if you want to you in after business rule then try and see if your logic can be put in before business rule else if it has to be put in after business rule then make sure to put current.setWorkflow(false); and then do a current.update();

 

2.Using query BR and ACL we can restrict data which way you would prefer?why?

Answer: BR and ACL both can restrict data, however it is always recommended to use an ACL as the instance has the capability to cache the ACLs, hence the ACLs are more performant than query business rule. Also, it is easier to debug the ACLs using the ACL debugger than a query business rule.

View solution in original post

5 REPLIES 5

Sandeep Rajput
Tera Patron
Tera Patron

@Shaik22 

 

1. Will current can be used in after business rule?If no, what is the alternative.

Answer: current can be used in both before and after business rules. If you are referring to current.update() then it is not needed in before business rule. In case if you want to you in after business rule then try and see if your logic can be put in before business rule else if it has to be put in after business rule then make sure to put current.setWorkflow(false); and then do a current.update();

 

2.Using query BR and ACL we can restrict data which way you would prefer?why?

Answer: BR and ACL both can restrict data, however it is always recommended to use an ACL as the instance has the capability to cache the ACLs, hence the ACLs are more performant than query business rule. Also, it is easier to debug the ACLs using the ACL debugger than a query business rule.