Query on attachments in service portal

Ahmmed Ali
Mega Sage

Hello All,

 

I have a requirement to copy attachment from existing record and populate it on new Catalog item in service portal.

For example, lets say there is one incident and below that incident number, there is a link to catalog item. When user opens that link, all the attachments in the incident should be populated on the catalog item form.

Then user can remove/attach new attachments and submit form.

 

Thanks and Regards,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali
1 ACCEPTED SOLUTION

Hello Jaspal,

 

Thank you for your response.

 

I was able to fulfill my requirement by reading unique GUID generated on catalog item widget and by copying records to that sys_id.

I am using record producer, hence the attachments are added with actual table name in attachments table and actual sys_id  (which will be generated as soon as the form is loaded in portal, same I am reading in my script and using to copy attachments).

 

Thank you,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

View solution in original post

10 REPLIES 10

Hi,

Please create your own question so the conversation can be tracked appropriately.

You're posting this across numerous other previously closed/answered threads.

https://community.servicenow.com/community?id=community_question&sys_id=13f687e5db1cdbc01dcaf3231f96...

https://community.servicenow.com/community?id=community_question&sys_id=01115daadb72eb004abd5583ca96...

Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!