How to open a specific page (like a particular request/task) of portal inside agent workspace
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2024 11:45 PM
I want to open a specific portal page(eg: a particular request /task/journey record) inside agent workspace as a new tab in agent workspace (like creating a new case ).
I have created a ui action namely" view journey" . and my workspace client script is as below.
function onClick(g_form) {
var answer;
var journeysys = g_form.getSysId();
var jrny = new GlideAjax('sn_hr_core.IFX_viewjourneycore');
jrny.addParam('sysparm_name', 'getJourneySysId');
jrny.addParam('sysparm_userId', journeysys);
jrny.getXML(getSysIdF);
function getSysIdF(response) {
answer = response.responseXML.documentElement.getAttribute("answer");
var url="/now/hr/agent/test_page_journey_test";
open(url,'_self');
}
}
in the above mentioned url, "test_page_journey_test" is having an iframe which navigates to esc portal (as the link to esc is configured in "source " config.
I am not sure how to pass the above sys_id value in variable "answer" to the iframe.
Please help on this. If there's any alternative way to achieve this requirement too, please suggest that here.
0 REPLIES 0