Can we open a Workspace page from UI Action

Jefferson
Kilo Sage

Hi all,

 

I've created an UI Action, setting up everything to work in Workspace, such as ticking the "Workspace Form Button" and "Format for Configurable Workspace" checkboxes.
This UI Action creates a record with default values, and I would like after creation to open this new record in another Workspace Page, basically routing the user to a different workspace page. To be more specific I would like to open this location "now/risk/risk/risk-assessment-main/{sys_id of the newly created record}".

Does anyone know if this can be done in the Workspace Client Script in the UI Action? Or do I need to use Declarative Actions or something else?

I've tried "g_aw.openRecord()", "action.setRedirectURL()", "g_navigation.open()", none of these worked.


Would appreciate any ideas.

 

Thanks 

1 ACCEPTED SOLUTION

Dibyaratnam
Tera Sage

In Workspace client script, can you try using, open("yourURL"); This should work.

 

Please mark as helpful if it helps.

View solution in original post

6 REPLIES 6

Thank you @Dibyaratnam 

This worked for me:

BiancaK_0-1720001094742.png

 

I tried to do the same thing but ui action does nothing. I am trying to open portal page from ui action on incident form on service operations workspace.