Integrating Two Different ServiceNow Instances
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 01:32 AM
Hi there,
I need to take data from one instance and create a story in another instance. The "rm_story" table has 4 reference fields, each of which comes from a different table. This means we need to create 5 REST Messages for integration. I have successfully integrated using Outbound REST Messages for the 5 different tables.
I have a question: instead of creating 5 REST Messages, can we achieve this using just 1 REST Message?
For example, I created a story in the source instance that includes a reference field called Epic. However, the Epic is not available in the target instance.
Can we handle this by creating a new Epic in the Epic Table if it's not available in the target instance when creating a story?
Thanks,
Subash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 01:56 AM
you need to send data for rm_story table along with 4 reference fields right?
why to have 5 REST Messages?
With single REST message you can hit the target instance
Didn't get your business requirement here
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 02:54 AM
Hi @Ankur Bawiskar,
we can use a single REST message if the data for the Reference field is already available in the Target Instance. Otherwise, we need to configure an additional REST message for the Reference field table. Only then can we populate the reference field value in the Target Instance.
Thanks,
Subash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 04:41 AM
why not 1 rest message?
in that same you can send data for reference fields
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2024 03:23 AM
There are two options available which should be done in target instance to make this work with 1 rest message
Option 1: Enable dynamic creation for reference fields, Refer below documentation
Option 2 : Create a before Business rule on 'rm_story' and create records in respective reference tables before insert using script.
Thanks,
Swathi