Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Attachment disappears when catalog item generates change request as a record producer

poojashah27
Giga Guru

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)

7 REPLIES 7

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


That sounds suspicious. Be sure to test it to ensure you didn't break it for other catalog items.


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