The Now Platform® Washington DC release is live. Watch now!
‎06-11-2020 07:47 AM
In my custom component in the side panel I want the user to be able to click on an item which should open a new tab to display the selected record in.
Does any body know how to do this?
In the screenshot I have opened a knowledge article from Agent Assist and inspecting the url I can see it now contains various information about the new tab opened.
The url becomes
/now/workspace/agent/record/incident/3530904e2f705010eea72f2ef699b69e/sub/record/kb_knowledge/7edb30035312120047a2da86a11c083b/params/sysparm-parent-table/incident/sysparm-parent-sys-id/3530904e2f705010eea72f2ef699b69e/mode/view
so it appears that "record" is the page to display but this is OOB and the record I want to display does not exist in a table in ServiceNow so I cannot use this method unless I create a new table and add the record to view temporarely in there.
‎06-11-2020 08:26 AM
You can configure UI action in agent workspace to open record in new tab.
Check solution from below
Regards,
Sachin
‎06-11-2020 08:47 AM
I am aware of that but it is not a UI action I am after. It is when clicking on a link INSDIE the sidepanel component I want to open a new tab.
‎06-21-2020 07:53 PM
You can use this:
dispatch(REFERENCE_INFO_CLICK, {
"referenceInfoClick": {
// Table of record you want to open
"referencetable": "sys_user",
// Record you want to open sys_id
"sys_id": "6816f79cc0a8016401c5a33be04be441"
}
});
‎06-21-2020 09:43 PM
Thanks, that will definately be helpfull at some poinbt, however in this case I do not want to open a record that is stored in a table in ServiceNow. I want to open my own custom component in the new tab and display content fetched via REST API from external system.