Rollback updates if a specific condition is met
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2024 10:52 PM
If I change any field's value in the record and save it, after saving it if the "Message" field gets a value via the API, it should rollback all the updates I made in the record. Any idea how I can implement such logic?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2024 11:00 PM - edited ‎09-04-2024 11:02 PM
Hi @Elvin_Salim ,
In my understanding you can use before BR and use REST Message script there.
Or can you please more elaborate your issue.
Regards,
Pratap Singh Sisodia
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2024 11:23 PM
Hi @Prataps135 ,
The logic should be like this: If the "Message" field's value is still "Error" or its value changed to "Error" after the updates, then rollback all current updates in the record.
There is no need to get that value via API, the simple condition is like this: (If the "Message" field still is/changes to "Error" then rollback all current updates in the record).