Only once additional comments should be added
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2024 04:44 AM - edited 11-06-2024 05:16 AM
HI,
Once the ritm is approved a new variable should be displayed and the value from variable should be added to additional comments on ritm. For this i have written a on load client script which should be applied to variable set because this logic should be reusable to other catalog items and script include. But every time form is loaded each time additional comments are displaying i want it to be displayed only once when the variable is populated the value should be displayed in additional comments.
script include:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2024 05:27 AM
@Community Alums
why to use onLoad client script and set the comments?
Why not use after update BR on sysapproval_approver and handle this?
OR
You can also use flow designer for the same
BR: After Update on sysapproval_approver
Condition: State [Changes To] Approved
Script:
// query RITM and get the variable value and append and add Comments to RITM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2024 05:32 AM
Hi, Thanks for your response. I want to reuse this logic to all catalog items wherever this variable set is added. so am writing client script which should be applied to variable set.