need to create incident record from one instance to another instance using rest . Please explain steps with images

Shilpi Sharma2
Tera Contributor

need to create incident record from one instance to another instance using rest . Please explain steps with images

 

Thanks in advance

1 ACCEPTED SOLUTION

Narayan2
Mega Expert

Hi Shilpi,

 

PFA document which contains step by instructions.

Hope above answers your query.

 

Please mark it correct or helpful if I answered your query.

 

 

Warm Regards,

Narayan Munagala

Engineer

find_real_file.png

Board Line +91-20-6728-5000  | Direct +91-20-6728-5147 | Mobile +91-9158467666

|www.DxSherpa.com|

View solution in original post

13 REPLIES 13

Vishal Khandve
Kilo Sage

Hi,

Link will help you.

 

Thank you,

vishal

Narayan2
Mega Expert

Hi Shilpi,

 

PFA document which contains step by instructions.

Hope above answers your query.

 

Please mark it correct or helpful if I answered your query.

 

 

Warm Regards,

Narayan Munagala

Engineer

find_real_file.png

Board Line +91-20-6728-5000  | Direct +91-20-6728-5147 | Mobile +91-9158467666

|www.DxSherpa.com|

Hi Narayan,

Thanks for your help but it is not creating i am using both developer instance 

1. Mine

2. My Friend 

and i am creating incident on my instance and then that incident must be created on my fiend instance but it is not working.

In End Point : need to mention my friend instance ?.

 

Please help.

 

Hi Shilpi,

 

Yes, you need to create REST message on your instance with your friends instance endpoint.

 

And create Business Rule on your instance incident form. Also once REST message is create you can test the REST message with TEST option and see the results, if test succeeds the message is working and check for issue in BR.

 

Regards,

Narayan

Hi Narayan,

Thanks for your help now it is creating an incident in another instance but i am sending short description column value it is not setting that value in another instance. My business rule script is as follows.

 

try {

var r = new sn_ws.RESTMessageV2('Incident Creation', 'POST');
r.setStringParameterNoEscape('short_description', 'Rest Test');

var response = r.execute();
var responseBody = response.getBody();

var httpStatus = response.getStatusCode();
gs.log("51"+httpStatus);
}
catch(ex) {
gs.log("52"+ex);
var message = ex.getMessage();
}

 

Please do reply