Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to update incident record from another ServiceNow instance with rest api?

IbrahimVali
Tera Guru

I have two instances, when I am creating an incident in first instance, then it is creating an incident record with same values in second instance.

When I try to update incident record in first instance, then same record of second instance is not updating.

Please provide me steps to achieve this.

Thanks,

Ibrahim

7 REPLIES 7

Sukraj Raikhraj
Kilo Sage

is this thru ebonding or rest api?

Knight Rider
Mega Guru

Hi,

you need to make a PUT/PATCH  call to another instance with Incident sys_id(in Instance 2) to update the record. 

Please provide infomration like how  you are creating  Incident in Instance 2  using a  REST Message/ Business rule.

Also, when you are creating the incident in  Instance 2, you need to get the SYS ID of Created Incident  and store it in custom field/any other field on Incident and l ater use that sys id to update the  created incident.

Thanks!!

plz show how to update , do you have docs for that ?