How do I get correlation id through REST API?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2022 11:43 PM
I want to make it as bi-directional communication of both servicenow instance, but correlation id is not populating..
Thanks in advance
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2022 11:48 PM
Hi Deepika,
Are you using in this in your Business Rule?
var payload = {};
payload["u_correlation_id"] = current.sys_id.toString();
Regards,
Gayathri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2022 11:50 PM
No Gayathri. could you please explain the process of this payload?
I am using BR for Incident Form's field only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2022 11:56 PM
Hi,
Bi directional means exchanging of data between 2 instance, it could be servicenow- servicenow or servicenow- 3rd party tool.
Payload is like a container where in we need to put all the fiels which we need to exchange in that correlation id and correlation display is like unique identifiers.
For ex, if 2 snow instances are integrating and we need to exchange short description, priority to be sent from 1 snow to another snow.
we have to write BR, create payload and send details like short desc, priority, correlation id and correlation display, then another instance got these values and they can update it or do whatever with it.
Mark my answer helpful,if it helped you in any way.
Regards,
Gayathri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2022 11:53 PM
You can use OOB Table API methods.
Refer below link for step by step instructions
ServiceNow to ServiceNow Integration using REST API and PUSH and PUT methods with Business Rule
You can also explore on Ebonding Spoke with less scripting
ServiceNow eBonding spoke
Refer the below link which has the approach with example shared by me.
Integration hub ebonding spoke
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader