- 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-02-2022 06:40 PM
Did you mistakenly marked your own response as correct?
Would you mind marking my response as correct as that worked for you
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader