- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2022 09:26 AM
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
Solved! Go to Solution.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2022 08:44 PM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2022 05:18 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2022 07:02 AM
Hi,
I already shared link which has sample script
regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader