Integration of two instances using REST API

varaprasad123
Kilo Guru

 

Hello,

 

I have a record producer in InstanceA which is creating an Incident.

 

Now, I need to integrate InstanceA with InstanceB and create the same Incident in InstanceB.

 

Based on a variable value on the Record producer on InstanceA we need to determine the Support group on InstanceB.

 

As soon as the incident is resolved in InstanceB, I need to copy all the activities to InstanceA and close the incident in InstanceA.

 

What would be the best approach for this integration? Appreciate your help!

 

Thanks

1 REPLY 1

S Goutham
Tera Guru

Hey @varaprasad123 :

You can have a scripted rest method to create the incident or update the incident with a web service user account having write access on both instances, the best approach is used to Oauth 2.0 for authentication or use basic authentication if Oauth is not configured

 

You will have to write a Scripted rest method POST on both instances to update the value of the incident

  • Instance A will have POST to create an incident on Instance B <Have a custom field to track the number of the incident of instance A to update it back> 
  • In Instance B will have POST to update the incident in Instance B

Integration triggers on Instace A and B can be both done via Business Rule or Flow Designer.

 

I hope this solves your issue
Mark this as Helpful / Accept the Solution if this clears your issue