How do i get the "corelation id" using integration rest api

KallaSpandana
Tera Contributor

Hi,

 

I need to get the  corelation id between two instances. Can anyone please help on this ? @Ankur Bawiskar 

 

Thanks,

Spandana.

1 ACCEPTED SOLUTION

@Ankur Bawiskar after testing it in the instance B , I am getting this error. Please refer to the attached snip for reference

View solution in original post

15 REPLIES 15

@Ankur Bawiskar after testing it in the instance B , I am getting this error. Please refer to the attached snip for reference

@KallaSpandana 

it means you are not sending the correct JSON

I believe I have answered your original question.

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 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

it's not working as expected, i have given the same code which you updated @Ankur Bawiskar 

@KallaSpandana 

was it working fine prior to updating the code I gave?

If yes then there could be issue with my code

If not then please fix your code, debug it, then add the code I shared

I shared few links earlier, refer those.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@Ankur Bawiskar I am getting this error in instance B after testing 

 

{"error":{"message":"Exception while reading request","detail":"The payload is not valid JSON."},"status":"failure"}

 

can anyone please help on this?