UI Window to upload spreadsheet in workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
We have a UI Action on Change Management that will take an excel spreadsheet an upload the data to the change request. We followed the following years ago and it works in the Standard UI with no issues:
UI Action to open Dialog Box for a file upload - ServiceNow Community
We are now trying to convert this to be used in the Service Operations Workspace. I have the following code for the Workspace script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
In Workspace, you need to explicitly pass the record’s sys_id (task ID) to your UI page/modal.The g_modal.showFrame method only opens the UI page—it doesn’t automatically provide context.
var ui_page_id = 'cfea686713383f0496295d322244b083';
var recordSysId = '<your_record_sys_id>'
g_modal.showFrame({
url: '/ui_page.do?sys_id=' + ui_page_id + '&task_id=' + recordSysId,
title: 'Bulk Add New CIs',
size: 'xl',
height: 500
});
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I tried that, but it is still telling me that there is no task id.
