- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2025 05:36 AM
Hi Experts!
I have a requirement to restrict visibility of 'Complete' button to 'XYZ' group members from resolved problem records.
I did modify the OOB 'Complete' UI action & added the below code in the condition field.
&& (gs.getUser().isMemberOf("XYZ"));
The above change is working for native view but not for SOW view.
Can anyone pls suggest any solution?
TIA
Hiranmayee Mohanta
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2025 06:52 AM
for that you need to update the Form action for workspace, add that extra condition in Scripted Client condition field
Update as this
URL: https://instanceName.service-now.com/nav_to.do?uri=sys_declarative_action_assignment.do?sys_id=c71bd67c43a402101b13e1ee46b8f29e%26sysparm_view=advanced
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
05-05-2025 05:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2025 06:52 AM
for that you need to update the Form action for workspace, add that extra condition in Scripted Client condition field
Update as this
URL: https://instanceName.service-now.com/nav_to.do?uri=sys_declarative_action_assignment.do?sys_id=c71bd67c43a402101b13e1ee46b8f29e%26sysparm_view=advanced
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
05-05-2025 09:22 AM
Hi @Ankur Bawiskar !
Thanks for your quick reply.
The condition is not working in 'scripted Client Condition' field but working in 'script condition' field.
Regards
Hiranmayee Mohanta
Thanks