Menu
/api/sample_evaluations/submitApproval (Execute Sample Approval action)
Execute Sample Approval action
POST
/api/sample_evaluations/submitApprovalUse it in a workflow
- Add a step and choose the TradeBeyond connector.
- Pick the /api/sample_evaluations/submitApproval (Execute Sample Approval action) action (under SampleEvaluationController).
- Fill in the fields below, then reference the result from later steps as
{{apiSampleEvaluationsSubmitapprovalExecuteSampleApprovalAction.response.data}}.
Request
Request body
Enter the body as JSON in the step's Body field.
{
"approvalStagesList": [
{
"sampleEvaluation": {
"id": "string",
"refNo": "string",
"version": 0,
"sampleId": "string"
},
"status": {
"code": "string",
"name": "string",
"version": 0
},
"rejectReason": {
"code": "string",
"name": "string",
"version": 0
},
"onBehalfOf": {
"code": "string",
"name": "string",
"version": 0
},
"rejectReasonCode": "string",
"approvalComment": "string",
"customFields": {
"dynamicModelMap": {}
},
"aprvProfileId": "string",
"aprvProfileStageId": "string",
"rejectReasonList": [
{
"code": "string",
"name": "string",
"version": 0
}
],
"approverList": [
{
"code": "string",
"name": "string",
"version": 0
}
],
"shareFileAttachments": [
{
"id": "string",
"fileName": "string",
"thumbnail": false,
"filePath": "string",
"fileSize": "string",
"protocol": "string",
"createUser": "string",
"createUserName": "string",
"updateUser": "string",
"updateUserName": "string",
"url": "string",
"angle": 0
}
]
}
],
"message": "string"
}
Response
Returns 200 with an object. Read it in later steps with {{apiSampleEvaluationsSubmitapprovalExecuteSampleApprovalAction.response.data.<field>}}.
{
"approvalStagesList": [
{
"sampleEvaluation": {
"id": "string",
"refNo": "string",
"version": 0,
"sampleId": "string"
},
"status": {
"code": "string",
"name": "string",
"version": 0
},
"rejectReason": {
"code": "string",
"name": "string",
"version": 0
},
"onBehalfOf": {
"code": "string",
"name": "string",
"version": 0
},
"rejectReasonCode": "string",
"approvalComment": "string",
"customFields": {
"dynamicModelMap": {}
},
"aprvProfileId": "string",
"aprvProfileStageId": "string",
"rejectReasonList": [
{
"code": "string",
"name": "string",
"version": 0
}
],
"approverList": [
{
"code": "string",
"name": "string",
"version": 0
}
],
"shareFileAttachments": [
{
"id": "string",
"fileName": "string",
"thumbnail": false,
"filePath": "string",
"fileSize": "string",
"protocol": "string",
"createUser": "string",
"createUserName": "string",
"updateUser": "string",
"updateUserName": "string",
"url": "string",
"angle": 0
}
]
}
],
"message": "string"
}
Need more? See the TradeBeyond guide for connection setup and behaviour shared by every action.
Was this page helpful?