Create a request UI Action for agent Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2023 08:04 AM - edited 03-13-2023 08:05 AM
I haven't worked on UI action enough to understand this ask: How do you expand this code to match this requirement?
When this UI action is selected, a new Request Item is automatically created.
The fields of the new Requested Item are populated according to the mapping provided in the table below.
Generic Request Catalog Item Variable | Interaction Field |
Requested For | Opened for |
Short description | Short description |
Description | Description |
The attachments on the Interaction are copied over to the Requested Item.
After the request is submitted, the work notes of the Interaction are updated with the following text:
"Request ${number} has been created"
function onClick() {
var result = g_form.submit('sysverb_ws_save');
if (!result) { // failed form submission
return;
}
result.then(function() {
var params ={};
params.sysparm_parent_table = "interaction";
params.sysparm_parent_sys_id = g_form.getUniqueValue();
g_service_catalog.openCatalogItem('sc_cat_item', '-1', params);
});
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2023 08:22 AM