- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2022 07:37 PM
Hi Team,
I am tasked to enable the 'Cancel Change' UI action for all Changes in Review state. I am quite new to this and will need your expertise.
The current condition for this UI action is set as:
gs.hasRole('itil,sn_change_write') && new ChangeFormUI(current).isCancelAvailable()
What would be the best approach for this one?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2022 08:00 PM
update as this
gs.hasRole('itil,sn_change_write') && (new ChangeFormUI(current).isCancelAvailable() || current.state == 0)
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2022 07:42 PM
Hi,
you need to check the existing UI action condition and modify accordingly
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2022 07:52 PM
Any suggestion?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2022 08:00 PM
update as this
gs.hasRole('itil,sn_change_write') && (new ChangeFormUI(current).isCancelAvailable() || current.state == 0)
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2022 03:08 PM
Thanks heaps Ankur, this one works perfectly for my requirement.