Using GET method to fetch the attachments from another ServiceNow instance for all old incidents?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 10:42 AM - edited 05-08-2024 09:48 AM
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.........
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 10:16 PM
Anyone?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 10:51 PM
Hi @Suggy
Have you created REST message? How do you want to get it? Using background script?
Regards,
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 01:48 AM
@Amit Pandey Hi Amit, havent started anything yet. That is why posted this question seeking for advise/solution 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 08:44 AM
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