Need to Hide UI Action which is visible in Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2025 02:14 AM
Hi all,
The requirement is to hide UI action on my Case record when Resolution Code is "Expired" or "Abandoned". I have added the below conditions in the condition builder of UI Action, but seems not working.
Script:
(current.resolution_code != 28 || current.resolution_code!= 29 && new global.StateFlow().validFlow(current, 'adc468f4979fb918dc87feae2153af14', 'manual'));
Any leads for the above will be helpful.
Thanks,
Sreesh Surendran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2025 02:21 AM
(current.resolution_code != 28 && current.resolution_code!= 29 && new global.StateFlow().validFlow(current, 'adc468f4979fb918dc87feae2153af14', 'manual'));
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2025 02:27 AM
did you try to remove the condition 1 by 1 and debug and see which is not working?
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
02-11-2025 09:13 PM
Have tried removing one condition and could see it was working.
(new global.StateFlow().validFlow(current, 'adc468f4979fb918dc87feae2153af14', 'manual') && (current.resolution_code != 28));
Thanks,
Sreesh Surendran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2025 09:17 PM
Glad to know.
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