Workspace - UI Action

PLaxmiPrasanna
Tera Contributor

Hi Everyone,

 

I have created a custom UI action on security response which open a UI Page (it opens a dialog box) and allows the users to select some choices and a 'observable' record associated to security incident . Based on the selection we are performing some action in UI page.

 

We want to achieve same in workspace, please suggest the best way to call a UI page from UI action in workspace. It should be able send the 'setPreference' the current page values for the UI Page.

 

Thanks in advance!

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@PLaxmiPrasanna 

there are many OOB UI actions which does this in workspace client script.

you need to use g_modal for this

Did you check those?

Search like this

AnkurBawiskar_0-1730728364481.png

this is an OOB one which sends the parameter but it sends it via URL and not using setPreference

AnkurBawiskar_1-1730728400342.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

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@PLaxmiPrasanna 

there are many OOB UI actions which does this in workspace client script.

you need to use g_modal for this

Did you check those?

Search like this

AnkurBawiskar_0-1730728364481.png

this is an OOB one which sends the parameter but it sends it via URL and not using setPreference

AnkurBawiskar_1-1730728400342.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

Thanks for responding @Ankur Bawiskar!

 

Yeah, have seen this but wanted to know if there is any other way to implement it.