If the field was updated by a business rule, the scheduled job cannot override it?

Neha Maurya
Tera Contributor

Please help how I can ensure if the field was updated by a business rule, the scheduled job cannot override it?

 

I have found this somewhere-
Use a Before Update Business Rule
 create a Before Update business rule to prevent overwriting:
• Table: Select the target table
• When to Run: Before Update
• Condition: current.your_field.changes() && previous.your_field != ''
This ensures that if the field was updated by a business rule, the scheduled job cannot override it.

 

Please confirm, if anybody has already used it before? or is there any other or better way to achieve it.

 

2 ACCEPTED SOLUTIONS

Hello @Neha Maurya 

 

Yes it will work. It will stop all updates in the system, once value is fixed, it will be fixed. If you want to change it agian, you will have to deactivate the BR, as also mentioned by me in first response, then we somehow got to other solutions and now back to this. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

View solution in original post

Shivalika
Mega Sage

Hello @Neha Maurya 

 

Please confirm if you checked my answer. Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for my efforts and also it can move from unsolved bucket to solved bucket. 

 

Regards, 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeE

 

View solution in original post

10 REPLIES 10

Shivalika
Mega Sage

Hello @Neha Maurya 

 

Please confirm if you checked my answer. Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for my efforts and also it can move from unsolved bucket to solved bucket. 

 

Regards, 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeE