Attachment disappears when catalog item generates change request as a record producer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2016 11:36 AM
Is there a way to copy attachments from service catalog item to record producer? what happens is when a catalog request gets submitted with attachment it appears when you hit submit (when it generates change request for that catalog item record producer)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2016 12:52 PM
i think i figured it out:
i needed to fix macro for attachment variable from this:
<a onclick="saveCatAttachment(gel('sysparm_item_guid').value, 'sc_cart_item')">
to:
<a onclick="saveCatAttachment(gel('sysparm_item_guid').value, 'change_request')">
and it worked

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2016 12:54 PM
That sounds suspicious. Be sure to test it to ensure you didn't break it for other catalog items.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2016 12:59 PM
Hi Pooja,
is 'Change Request - FireWall' is a catalog item or Record Producer?
Can you please configure the item and paste the screen shot.
If it is a record producer pointing to the change request table, ideally attachment will transfer to the change request automatically.
If it is a catalog item and you are doing some customization to generate Change from it then you should copy the attachment to Change request by scripting
Copy Attachments from Record to Record - ServiceNow Wiki
Hope this helps