We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

REST Message via Flow Designer Action

Naveen87
Tera Guru

Hello Developers,

I'm trying OUTBOUND integration from Flow Designer.
I have created a custom action.
I want to fetch the partner ticket from the response received & store on correlation ID on my Instance.

Below is my script, But unsuccessful.

Please suggest


outputs.correlation_id = responseBody.result.u_partner_ticket_id;

 

Naveen87_0-1714036873979.png

(function execute(inputs, outputs) {

 if(inputs.status_code == '201'){
   var group = inputs.u_shr_assignment_group.getDisplayValue() + ',' + inputs.u_shr_priority + ',' + inputs.u_shr_company;
   var responseBody = JSON.parse(inputs.response_body);
   outputs.correlation_id = responseBody.result.u_partner_ticket_id;
   outputs.description = group; 
}


})(inputs, outputs);

 

Naveen87_1-1714036975549.png

 

5 REPLIES 5

Naveen87
Tera Guru

I'm using OOB retry methods. But I'm not sure how this can be tested. 

Please suggest.

Naveen87_0-1714041281009.png

Naveen87_1-1714041296883.png