- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2025 01:24 AM
I want to update record on the same table. Which Business rule should i use?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2025 01:26 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2025 01:26 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2025 01:35 AM
Thank you @amitshishod it worked for me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2025 01:38 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2025 01:41 AM
Thank you i will keep in mind