Using GET method to fetch the attachments from another ServiceNow instance for all old incidents?

Suggy
Giga Sage

Hi All,

We have 2 ServiceNow instances 'A' and 'B'. Incidents are ebonded between the 2 instances (Incident number and sys_id of the incidents present in instance 'B' is stored in the incident form of instnace 'A' under the correltion ID and Display fields)

 

During the initial project, attachments were not considered at all. for ebonding.

 

But now we have a requirement that for all the existing/old incidents, the attachments should be pulled using HTTP GET method from instance 'A' by reading the attachments from instance 'B'. 

Points to note - 

1. There could be multiple attachments for an Incident

2. There are ~8000 incidents where we need to pull the incidents.

 

Can someone help please.........

9 REPLIES 9

Suggy
Giga Sage

Anyone?

Amit Pandey
Kilo Sage

Hi @Suggy 

 

Have you created REST message? How do you want to get it? Using background script?

 

Regards,

Amit

@Amit Pandey  Hi Amit, havent started anything yet. That is why posted this question seeking for advise/solution 🙂

Hi @Suggy 

 

There is OOB Attachment API. You can share this with the client-

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0546294

 

Do you want to upload past attachments also? 

 

Regards,

Amit