Capturing attachments in update sets
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2022 06:23 AM
Hi Everyone!
Question: What is the best way to capture an attachment in an update set? Also will the sys_id of the attachment change once its in a different environment?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2022 12:32 AM
Hi
you are right. For example if you select an image for a catalog item, that image is not captured automatically in an Update Set.
There are code examples how to push attachments to an Update Set, but it is easier to use the "Add to Update Set" feature (load it from https://developer.servicenow.com/connect.do#!/share/contents/9824957_add_to_update_set_utility)
Having that feature activated in your instance you can go to sys_attachment table, select the required attachments and the trigger the "Add to Update Set" action:
Kind regards
Maik
