Need to create a bidirectional integration between two Snow instances by using OOB table API

shashank32
Giga Contributor

Hi 

I need to create a bidirectional integration between two Snow instances by using OOB table APIin 

ex if i create or update a incident in source instance it should create or update incident in target instance and viceversa.

Can anyone help me in doing this.

Thank You

Shashank  K S

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

You can use OOB Table API methods.

Refer below link for step by step instructions

ServiceNow to ServiceNow Integration using REST API and PUSH and PUT methods with Business Rule

You can also explore on Ebonding Spoke with less scripting

ServiceNow eBonding spoke

Refer the below link which has the approach with example shared by me.

Integration hub ebonding spoke

Regards
Ankur

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

View solution in original post

12 REPLIES 12

Thanks for the update..

Hi Ankur i have tried it .The code is working good for unidirecrtion integration,but its not working for bidirectional integrtion.

ex if i create or update a incident  in dev9999 instance its creating or updating a incident in dev8888

but when i try to cretae or update in dev8888 its not creating or updting in dev9999

 

Is their any easy way to get through both bidirectional integration

 

Thank You

Shashank 

Hi,

try to replicate the same steps in the other instance also.

Are you populating the incident number in the Correlation ID field so that the integration knows which incident in target instance to update.

You can also explore on the ebonding spoke I mentioned earlier.

Refer the link I shared where I have shared how to do that

Regards
Ankur

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

Hi In video he has not mentioned how to populate correlation field .can you suggest me the code of how to populate the field.

Hi,

Please populate the correlation id whenever incident is created in instance B with the sys_id

please share how are you consuming the other instance endpoint; in that send the incident sys_id in the correlation_id

Regards
Ankur

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