How do I get correlation id through REST API?

Deepika Gangra1
Tera Expert

I want to make it as bi-directional communication of both servicenow instance, but correlation id is not populating..

Thanks in advance

14 REPLIES 14

Gayathri5
Tera Guru

Hi Deepika,

 

Are you using in this in your Business Rule? 

var payload = {};
payload["u_correlation_id"] = current.sys_id.toString();

 

Regards,

Gayathri

 

 

 

No Gayathri. could you please explain the process of this payload?

I am using BR for Incident Form's field only.

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

Ankur Bawiskar
Tera Patron
Tera Patron

@Deepika Gangrade 

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

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