- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2022 07:47 AM
Hello,
I currently have a requirement to configure a button that allows for downloading all attachments added within in a ticket form on the Service Portal, see photo below
I know where to make these edits, but as to how I am unsure and inexperienced within the Service Portal. Any ideas?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2022 08:23 AM
Hu, never looked into this before but there is a button on the platform UI Attachments dialog to download all attachments. This is the function the button calls.
function downloadAllAttachments() {
var downloadUrl = window.location.protocol + '//' + window.location.host + '/download_all_attachments.do?sysparm_sys_id=' + attachmentParentSysId
+ "&sysparm_this_url=" + getCurrentPageURL();
window.location = downloadUrl;
}
So it looks like you can just add a button to your widget and then open a new tab/window to the above URL and you are all set.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2023 04:32 AM
Hello Ankur,
Can we add download all attachment in service operation workspace?