Integrating Two Different ServiceNow Instances

subashds6515
Tera Contributor

 

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

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@subashds6515 

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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

@subashds6515 

why not 1 rest message?

in that same you can send data for reference fields

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

SwathiPedireddy
Kilo Sage

Hi @subashds6515 

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

https://docs.servicenow.com/bundle/washingtondc-platform-administration/page/administer/field-admini...

Option 2 : Create a before Business rule on 'rm_story' and create records in respective reference tables before insert using script.

 

Thanks,

Swathi