Update record on same table

gauravagarw
Tera Expert

I want to update record on the same table. Which Business rule should i use?

1 ACCEPTED SOLUTION

amitshishod
Tera Guru

Hello Buddy, to update the record on the same table you should use Before Business rule and it will update the data before the action will get complete.

Please mark my answer correct and helpful if it helps you.

View solution in original post

5 REPLIES 5

amitshishod
Tera Guru

Hello Buddy, to update the record on the same table you should use Before Business rule and it will update the data before the action will get complete.

Please mark my answer correct and helpful if it helps you.

gauravagarw
Tera Expert

Thank you @amitshishod it worked for me.

Abhishek_Thakur
Mega Sage

Hello @gauravagarw ,

To update the record in the same table, you should use the before business rule as it makes the changes in the current record before it is written to the database.

 

Notes:

  • Avoid using current.update() in Before Business Rules, as it can cause recursion and unexpected behavior. Directly modify the current object instead.
  • For performance and maintenance, ensure conditions are precise to avoid unnecessary executions.

 

Please mark my answer as accepted solution and give thumbs up, if it helps you.

Regards,

Abhishek Thakur

Thank you i will keep in mind