Agent Workspace - UI Action to open a UI Page in a sub tab

German Alvarez2
Tera Expert

Hi Community!

In the Agent Workspace, I would like to place a UI Action in order to open a IU Page in a sub tab, or to show the results of a query, let's say the list of Incidents opened by the same user in the last three days in a subtab?

find_real_file.png

Does anyone knows how to make it possible?

Best Regards

6 REPLIES 6

rgm276
Mega Guru

Not sure about using a UI Action, but for your use case, you could use easily use a related list on the workspace view of the form (you can create your own related list conditions, or simply use the existing Incidents by the same caller.  Here is quick screen shot of how you could add that related list to your agent workspace for incident.

find_real_file.png

Hi Thanks,

 

This is not really a Related List what I want, sorry for missguiding you, it's just a UI Page what I want to render in the sub tab, and in the UI Page render the data I would like to render.

 

Did you have kind of experience on this

 

German Alvarez2
Tera Expert

Hi again,

 

I've had some progress on this task, in New York (but not in Madrid, which seems to work in other way around),

 

So,

 

Given an Agent Workspace Incident, with current.sys_id = "1234", in my browser it appears the url:

"https://my-instance.service-now.com/now/workspace/agent/record/incident/1234"

find_real_file.png

Then, I click on the button to visit the caller, and it opens a subtab, with the caller information, and, the url at my browser changes to:

"https://my-instance.service-now.com/now/workspace/agent/record/incident/1234/sub/record/sys_user/334455"

find_real_file.png

Given that, I also click on the assignment_group, adding a new subtab, and changing the url to:

"https://my-instance.service-now.com/now/workspace/agent/record/incident/1234/sub/record/sys_user_group/667788"

And so on, so, in order to add a new subtab is just to call the correct url, by adding ".../sub/record/table/sys_id" what looks fine

 

The point I'm right now is, in order to render the UI Page, it's only to add "https://my-instance.service-now.com/now/workspace/agent/record/incident/1234/sub/record/sys_ui_page/11111" BUT! it shows me the UI Page form (Where I code the UI Page), but it doesn't render the UI Page... OUUCCHHH!

 

In a different threat, we know that to render a UI Page in "old-way-mode" it's to call:

"https://my-instance.service-now.com/nav_to.do?uri=%2Fui_page.do%3Fsys_id%3D11111"

instead of calling:

"https://my-instance.service-now.com/nav_to.do?uri=%2Fsys_ui_page.do%3Fsys_id%3D11111"

 

So, coming back to the main thread, I try to call:

"https://my-instance.service-now.com/now/workspace/agent/record/incident/1234/sub/record/ui_page/11111"

And it gets stuck with some errors in the console.

 

At this point, I'm guessing that adding ".../sub/record/table/sys_id" doesn't work for UI Pages, especially, by the "record" keyword, and it could be other work which helps the REST engine to render a UI Page properly.

 

Does anybody knows how to do the last step in order to render the UI Page?

 

Thanks for your collaboration!!

Any luck on this?