How to update the incident in third party servicenow application when Additional Comments updated in my servicenow.

vijay131
Tera Contributor

 

Hi All, 

We have servicenow application where third party servicenow sends a data to our servicenow to create an incident. 

For this we have a created scripted web services which accepts request body from third party servicenow and mapping in to our servicenow incident fields and creates an incident in our servicenow and we are mapping incident number and sys_id of third party servicenow in to our Servicenow correlation display and correlation ID respectively. 

We have 2 requirements Now:

1) First requirement is how to update/send the third party servicenow incident Additional comments if Additional Comments in our servicenow updates. 

They have provided the table api as end point like below not the actual Incident table api.. Looks like import set table api. Is that correct? 

https://xxxxxx.servicenow.com/api/now/table/u_example_incident_inbound

2) How to update/send the resolution code and resolution notes of our servicenow to third party servicenow if the incident is resolved on our side. 

They suggested to use the same above endpoint for updating this as well. 

Please help me in completing both requirements step by step. 

Thanks & Regards, 

Vijay

 

 

 

 

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

points below

1) First requirement is how to update/send the third party servicenow incident Additional comments if Additional Comments in our servicenow updates. 

They have provided the table api as end point like below not the actual Incident table api.. Looks like import set table api. Is that correct? 

-> yes it's correct. they must be using import set API and you need to invoke it via after update business rule on your table

-> ask them the format of json request body and include the details properly

https://xxxxxx.servicenow.com/api/now/table/u_example_incident_inbound

2) How to update/send the resolution code and resolution notes of our servicenow to third party servicenow if the incident is resolved on our side. 

-> you need to invoke the API via after/async update business rule

-> ask them the format of json request body and include the details properly

Regards
Ankur

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

View solution in original post

6 REPLIES 6

@Ankur Bawiskar 

1) For 1st Requirement, they have provided the sample json body like below

{

  u_correlation_display: "myInstanceINCNumber",

  u_correlation_id: "myInstanceINCSysId",

  u_rq_number: "TargetINCNumber", //which we saved in correlation display Field in our snow

  u_rq_sys_id: "TargetINCSysID", //which we saved in correlation ID Field in our snow

  u_comments: "Additional comment added to incident"

}

 

2)For 2nd Requirement, they have provided the sample JSON body like below

{

  u_correlation_display: "myInstanceINCNumber",

  u_correlation_id: "myInstanceINCSysId",

  u_rq_number: "TargetINCNumber", //which we saved in correlation display Field in our snow

  u_rq_sys_id: "TargetINCSysID", //which we saved in correlation ID Field in our snow

  u_close_code: "Our Instance closure/resolution code",

  u_close_notes: "Our Instance closure resolution notes"

}

 

Please suggest me the script or any sample script to use in accomplishing the above two requirements please

Hi,

I already shared link which has sample script

regards
Ankur

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