- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-03-2023 01:31 AM
Hello,
I am looking for some help with the ITSM Agent Workspace. I have a requirement where I need to open a request from an interaction for the analysts to add more information into. We have created a specific request item that needs to be used for this. Currently, I am able to open the form in the workspace from the interaction, using the create request button for this, but not able to copy the values for the short description and user name from the interaction into the form.
I have tried various community suggestions but nothing worked for me. The closest I got to getting it work is via passing the values as parameters on the url and then extracting it from the URL using a catalog client script. But what I found when I did this is that it copies the values into the subsequent requests opened via interaction and does not get the new values from the current interaction.
I would appreciate any suggestions if anyone has got this working. I will post what I have below.
Workspace Client Script for Create request UI action:
function onClick(g_form) {
g_form.setValue('state', 'closed_complete');
//g_form.save();
var result = g_form.submit('sysverb_ws_save');
if (!result) { // failed form submission
return;
}
result.then(function() {
var openedFor = g_form.getValue("opened_for");
var shortDescription = g_form.getValue("short_description");
var params = {};
params.sysparm_parent_table = "interaction";
params.sysparm_parent_sys_id = g_form.getUniqueValue();
params.sysparm_username = openedFor;
params.sysparm_shortdesc = shortDescription;
g_service_catalog.openCatalogItem('sc_cat_item', '1afd64881b23c0106956535c2e4bcba6', params);
});
}
Catalog Client Script created(username did not work. Only Short description did):
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2023 10:21 PM
Hello @Community Alums,
Please refer to the below link:
https://www.servicenow.com/community/csm-forum/passing-variables-from-interaction-record-ti-catalog-item-in/m-p/402456
If it is helpful, mark it as a thumbs-up and accept the correction solution.
Thanks & Regards,
Abbas Shaik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2023 10:21 PM
Hello @Community Alums,
Please refer to the below link:
https://www.servicenow.com/community/csm-forum/passing-variables-from-interaction-record-ti-catalog-item-in/m-p/402456
If it is helpful, mark it as a thumbs-up and accept the correction solution.
Thanks & Regards,
Abbas Shaik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-08-2023 08:36 AM
Thank you Abbas. That's amazing. Works really well.