JohnDanter2
VIP Member
Hi folks
I want to know if it is possible to send back the output componet part "output": [ ... ] of the JSON response when an E1 BSFN encounters an error
Example of success
{
"ServiceRequest1": {
"name": "GetUDC",
"template": "D0005",
"submitted": true,
"result": {
"output": [
{
"id": 7,
"value": "Capitalized Lease",
"name": "szDescription001"
},
{
"id": 8,
"value": " ",
"name": "szDescription002"
},
{
"id": 9,
"value": " ",
"name": "szSpecialHandlingCode"
},
{
"id": 14,
"value": " ",
"name": "szErrorMessageId"
}
]
}
},
"jde__status": "SUCCESS",
"jde__startTimestamp": "2022-10-20T05:05:55.888-0500",
"jde__endTimestamp": "2022-10-20T05:05:56.172-0500",
"jde__serverExecutionSeconds": 0.284
}
Example of error
{
"message": {
"X0005_BSFNCall": {
"szerror": "0027",
"errorLevel": 1,
"alphaDescription": "Error: User Defined Code Error",
"glossaryText": "CAUSE . . . . The entered code was not found in the User Defined Codes.\nRESOLUTION. . Enter a valid code or place the cursor in the field in error\n and press 'F1' to display the valid values for the field.\n",
"fileName": "rtk_udvl.c",
"lineNumber": 597
}
},
"exception": "Exception",
"timeStamp": "2022-10-20T05:11:44.053-0500",
"userDefinedErrorText": "",
"jde__simpleMessage": "X0005_BSFNCall failed: Error: User Defined Code Error",
"jde__status": "ERROR",
"jde__startTimestamp": "2022-10-20T05:11:43.790-0500",
"jde__endTimestamp": "2022-10-20T05:11:44.056-0500",
"jde__serverExecutionSeconds": 0.266,
"status": "ERROR"
}
I would love the reponse, error or not to still include the "output": [ .. ] part.
I have seen we can send back simple message, so maybe I can amend the JSON response part to add the inputs????
Thanks
John
I want to know if it is possible to send back the output componet part "output": [ ... ] of the JSON response when an E1 BSFN encounters an error
Example of success
{
"ServiceRequest1": {
"name": "GetUDC",
"template": "D0005",
"submitted": true,
"result": {
"output": [
{
"id": 7,
"value": "Capitalized Lease",
"name": "szDescription001"
},
{
"id": 8,
"value": " ",
"name": "szDescription002"
},
{
"id": 9,
"value": " ",
"name": "szSpecialHandlingCode"
},
{
"id": 14,
"value": " ",
"name": "szErrorMessageId"
}
]
}
},
"jde__status": "SUCCESS",
"jde__startTimestamp": "2022-10-20T05:05:55.888-0500",
"jde__endTimestamp": "2022-10-20T05:05:56.172-0500",
"jde__serverExecutionSeconds": 0.284
}
Example of error
{
"message": {
"X0005_BSFNCall": {
"szerror": "0027",
"errorLevel": 1,
"alphaDescription": "Error: User Defined Code Error",
"glossaryText": "CAUSE . . . . The entered code was not found in the User Defined Codes.\nRESOLUTION. . Enter a valid code or place the cursor in the field in error\n and press 'F1' to display the valid values for the field.\n",
"fileName": "rtk_udvl.c",
"lineNumber": 597
}
},
"exception": "Exception",
"timeStamp": "2022-10-20T05:11:44.053-0500",
"userDefinedErrorText": "",
"jde__simpleMessage": "X0005_BSFNCall failed: Error: User Defined Code Error",
"jde__status": "ERROR",
"jde__startTimestamp": "2022-10-20T05:11:43.790-0500",
"jde__endTimestamp": "2022-10-20T05:11:44.056-0500",
"jde__serverExecutionSeconds": 0.266,
"status": "ERROR"
}
I would love the reponse, error or not to still include the "output": [ .. ] part.
I have seen we can send back simple message, so maybe I can amend the JSON response part to add the inputs????
Thanks
John