Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Complete button Visibility in SOW view

Hiranmayee Moha
Tera Expert

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

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Hiranmayee Moha 

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

AnkurBawiskar_0-1746453088775.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

3 REPLIES 3

Hiranmayee Moha
Tera Expert

HiranmayeeMoha_0-1746449714540.png

 

Ankur Bawiskar
Tera Patron
Tera Patron

@Hiranmayee Moha 

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

AnkurBawiskar_0-1746453088775.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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