Aligning UI Action Behavior Across Core UI and Service Operations Workspace

rachamaa
Tera Contributor

There are two UI actions—Risk Assessment and Request Approval—but their behavior in Service Operations Workspace differs from the Core UI. What steps are needed to ensure these UI actions function consistently across both core and workspace interfaces?

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@rachamaa 

did you check the code behind them?

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

Same Ui action I want to use in core UI Change form and service operations workspace, but not working as expected

@rachamaa 

are those custom or OOTB ones?

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

@rachamaa 

I found 2 OOTB "Request Approval" UI actions and they are only for native and won't be shown in workspace.

If you want to show them on Workspace then you will have to enable Workspace Form Button checkbox and then write your script in Workspace client script

AnkurBawiskar_0-1757593027530.png

AnkurBawiskar_1-1757593035558.png

Something like this in the UI action where we are moving to Authorize

function onClick(g_form) {
	//ensure state field is present in workspace view
    g_form.setValue("state", "-3");
    g_form.save();
    location.reload();
}

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