Want to download attachments in a zip file according to the RITM no associated to it. I don't want to go with ui action option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2020 12:47 AM
Hi All,
I want to download attachments in a zip file according to the RITM no associated to it. I don't want to go with ui action option.
I tried to use attachment API but couldn't find a way to download the attachments. All i was able to see was metadata.
I want the exact attachment that is attached to the RITM
Example; if i have 20 RITMs. If i hot an API, then 20 zip files should be created locally storing the respective attachments.
Pls help.
Regards,
Nikita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2020 05:29 AM
Hi Nikita,
I believe you will have to create scripted REST API to achieve this.
It would accept the 5 RITM record numbers and then use the script to attach the files
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2020 05:37 AM
Hi Ankur,
Can you help me with the code to download attachments in zip file.
Regards,
Nikita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2020 05:54 AM
Hi Nikita,
I haven't tried it personally. the links above should help you get started.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2020 09:56 PM
Hi Ankur,
Could you please guide me through the code to download an attachment?
Regards,
Nikita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2020 12:08 AM
Hi Nikita,
I believe you should get help from above links.
haven't tried it yet.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader