how to connect the two service now instances through REST ?

ram_sn2018
Kilo Contributor

how to connect the two service now instances through REST Messages

Scenarios:

1. Servicenow to servicenow integration using REST/SOAP

2. When a incident is submitted in one servicenow environment , then a new incident should also get created in other servicenow instance     with same details.

3.  All updates on work notes/status done on incident in one environment should also get passed to another incident on other servicenow  environment.

4. Once incident is closed it should also close the other incident.

5. Communication can happen bidirectional. Please note this.

6. You solution should have proper error handling mechanism.

 

Thanks,

Ram

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Ram,

please find the points below

1. Servicenow to servicenow integration using REST/SOAP -> use either out of the box Table REST API or Scripted REST/SOAP

2. When a incident is submitted in one servicenow environment , then a new incident should also get created in other servicenow instance     with same details. -> use out of the box table REST API or scripted REST/SOAP

3.  All updates on work notes/status done on incident in one environment should also get passed to another incident on other servicenow  environment. -> whenever work notes changes have after business rule and trigger API call to another instance by first creating REST/SOAP Outbound Message

4. Once incident is closed it should also close the other incident. -> after update business rule when state changes to close trigger API call same as point 3

5. Communication can happen bidirectional. Please note this. -> have similar logic developed in instance A into instance B so that it flows from instance B to instance A. in the business rule add this condition to ensure the API call doesn't go into loop

gs.getSession().isInteractive()

-> this means any update happened manually then only trigger API Call

6. You solution should have proper error handling mechanism. -> better use scripted REST/SOAP to handle error mechanism

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

Ashutosh Munot1
Kilo Patron
Kilo Patron

Pratiksha Kalam
Kilo Sage

Hi Ram,

Refer below link,

 

https://community.servicenow.com/community?id=community_question&sys_id=293a7b87dbefbfc4f7fca851ca96...

 

If my answer is worthy mark it as helpful and correct.


Regards,
Pratiksha

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Ram,

Any update on this?
Can you mark my answer as correct, helpful if you were able to achieve the requirement & close the thread. Thanks in advance.

Regards
Ankur

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