SOW: Show UI action in Change Request

angel7170
Tera Contributor

Hi - 

I created a new UI action in Change Request (On Hold) and it shows fine in the native UI but how can I show this in Service Operations Workspace. Can someone please assist? Thank you

 

angel7170_0-1749729718342.png

 

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@angel7170 

to show that in workspace you already checked the checkboxes for Workspace Form menu and Format for Configurable Workspace and you add client side logic in workspace client script

add this in workspace client script

function onClick(g_form) {

g_form.setValue('state', 8);
g_form.setValue('on_hold', true);

 g_form.submit('actionName'); // put the action name of your UI action here

}

AnkurBawiskar_0-1749730435067.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

Ankur Bawiskar
Tera Patron
Tera Patron

@angel7170 

to show that in workspace you already checked the checkboxes for Workspace Form menu and Format for Configurable Workspace and you add client side logic in workspace client script

add this in workspace client script

function onClick(g_form) {

g_form.setValue('state', 8);
g_form.setValue('on_hold', true);

 g_form.submit('actionName'); // put the action name of your UI action here

}

AnkurBawiskar_0-1749730435067.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

Thank you so much! That worked

aakankshapl
Tera Expert

Hello @angel7170 ,
To display the Ui action you wil need to enable below two fields from ui action configuration form, please refer below image:

aakankshapl_0-1749730998090.png

 

 

✔️Please mark responses as HELPFUL and ACCEPT SOLUTION to assist future users in finding the right solution....