Download attachments for multiple records

madhuv
Tera Contributor

Hi team,

 

I have a requirement to download the attachments physically or place them to a shared folder from finance request table for a set of 10K records.

I went through multiple community posts, but could not figure out a best solutions.

Some posts talks about UI actions (list choice), but for 10 K it will be too much of manual and customer wont easily accepts it.

Also, the processor part what they mention is depricated in the recent versions.

Some talk about RES API, there doesnot seems to be proper solution there as well (I am not sure whether I am not understanding it).

Can you please guide me with the proper way, please?

Customer also wants the zipped file name should have the request number.

 

Various post I went through were:

https://servicenowguru.com/scripting/download-attachments-zip-file/

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

https://community.servicenow.com/community?id=community_question&sys_id=27d2081edb3d3740190dfb2439961959&view_source=searchResult

https://community.servicenow.com/community?id=community_article&sys_id=b93cad67db831c503daa1ea6689619b1

https://community.servicenow.com/community?id=community_question&sys_id=e225af43db6f67844abd5583ca961959&view_source=searchResulthttps:%2F%2Fwww.servicenowguru.com%2Fscripting%2Fdownload-attachments-zip-file%2F#comment-34336

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

https://community.servicenow.com/community?id=community_question&sys_id=92ef72eddb58dbc01dcaf3231f961960

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

https://community.servicenow.com/community?id=community_question&sys_id=7e5b556d1be7d4108672ea89bd4bcba8

 

Thanks

Madhu

2 REPLIES 2

Kieran Anson
Kilo Patron

Best option is to leverage the REST API and use an external system (Python script, powershell script, Node.js) to call this API, save the response document and create the required folders.

Attachment API | ServiceNow Developers

ram prasad
Tera Contributor

Hi, Did you get the solution for this ? I have requirement of download my customer tickets attachments and share with them as they are offboarding from my support.