Stank1964
Well Known Member
I have an outbound orchestration and I need to try the connector and if it fails, I need to get a fresh token and make the request again. Can someone tell me how to access the "statusCode" or even the "status" variables in the response? Here is the response.
{
"message": {
"ServiceRequest: 55CN_SalesForceCase_Connector": {
"statusCode": 401,
"error": "java.lang.Exception: External Generic Call Failed See Log For Details: 401 ",
"headers": {}
}
},
"exception": "Exception",
"timeStamp": "2023-05-15T12:20:53.924-0400",
"userDefinedErrorText": "",
"status": "ERROR",
"jde__simpleMessage": "55CN_SalesForceCase_Connector failed: java.lang.Exception: External Generic Call Failed See Log For Details: 401",
"jde__status": "ERROR",
"jde__startTimestamp": "2023-05-15T12:20:53.293-0400",
"jde__endTimestamp": "2023-05-15T12:20:53.924-0400",
"jde__serverExecutionSeconds": 0.631
}
{
"message": {
"ServiceRequest: 55CN_SalesForceCase_Connector": {
"statusCode": 401,
"error": "java.lang.Exception: External Generic Call Failed See Log For Details: 401 ",
"headers": {}
}
},
"exception": "Exception",
"timeStamp": "2023-05-15T12:20:53.924-0400",
"userDefinedErrorText": "",
"status": "ERROR",
"jde__simpleMessage": "55CN_SalesForceCase_Connector failed: java.lang.Exception: External Generic Call Failed See Log For Details: 401",
"jde__status": "ERROR",
"jde__startTimestamp": "2023-05-15T12:20:53.293-0400",
"jde__endTimestamp": "2023-05-15T12:20:53.924-0400",
"jde__serverExecutionSeconds": 0.631
}