BR issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2024 01:51 AM
Hi Team ,
When ever we are creating standard change template , and category is 'template management , after completing approval ,then , Hide on ServicePortal is become false .
BR i have written
Testing Result
Still active shows FALSE
can anyone please help me on this ..
please provide configuration screenshots for better understanding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2024 01:57 AM
HI,
Dot walk to another table and update doesn't work like this.
You need to write a glide record script to get to the target record and then update it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2024 01:58 AM - edited 06-24-2024 01:59 AM
Hi @nameisnani,
The issue I see is more of one around logic. This business rule will run after insert only. However, you mention in your requirement that the 'Hide on Service Portal' should be set to true after approval.
Insert and approval will not happen at the same time (Unless you can advise otherwise).
The business rule needs to be after update, and it should happen once the approval state has changed to approved. (Or suitable change state appropriate your your workflow)
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.
Thanks, Robbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2024 02:07 AM
if the BR and the field to be updated are on same table then you should use Before insert and then Set Field values will work.
if the field to be updated is on some other table then you need to use script and update it
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader