- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2024 09:44 AM
Hi,
To update a field value through after business rule using current.update, field value is not getting updated. Value is not updating in the field when we open the record, in list view also value is not appearing and in the backend table also value is not populating. However, if we print the current value of the field using gs.info & gs.addInfoMessage I can see the sys_id of the value successfully. Can anyone help with it.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2024 10:06 AM
Hi @SNOW Learner09 ,
Pease try to use before Business Rule. In after business rule it is not recommended to use current.update() because it goes in loop, so please try with before BR and in before BR you didn'y want to use current.update().
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2024 10:06 AM
Hi @SNOW Learner09 ,
Pease try to use before Business Rule. In after business rule it is not recommended to use current.update() because it goes in loop, so please try with before BR and in before BR you didn'y want to use current.update().
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 06:12 PM
Yeah tried with Before BR and it worked. This also eliminates the need of current.update. Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2024 10:23 AM
post your script, and as @Community Alums says, set your BR to run Before. Use an order value > 100. No 'current.update();' is needed in BRs that run Before.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2024 03:16 PM
Hi @SNOW Learner09 ,
Could you please share code of BR which you have written and explain what you are trying achieve with some screen shot ?
Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Swathi Sarang