-
queeramnesty_chAsked on May 4, 2021 at 3:32 AM
I have setup an approval workflow for one of my forms.
Approval status is visible in UI but not available via API (GET on submission). Do you have plans to adjust this or have I missed something?
-
Lorenz JotForm SupportReplied on May 4, 2021 at 7:51 AM
Greetings,
It seems like the approval status is not included yet in the API response yet.
Let me forward this to our back-end team so they can further check.
We'll keep you posted via this ticket for any updates.
-
Umut JotForm DeveloperReplied on February 4, 2022 at 5:46 AM
Hello,
You can now get the workflow status on our endpoints:
GET /submission/{submissionID}
GET /form/{formID}/submissions
It can be seen as "workflowStatus" in the API response. You will get a response something like this:
{
"responseCode": 200,
"message": "success",
"content": {
"id": "SUBMISSION-ID",
"form_id": "FORM-ID",
"ip": "SOME-IP-ADDR",
"created_at": "2022-01-28 04:45:57",
"status": "ACTIVE",
"new": "0",
"flag": "0",
"notes": "",
"updated_at": "2022-01-28 04:46:20",
"answers": {},
"workflowStatus": "Approve"
},
"duration": "95.28ms"
}
By default, if the submission is denied status will be "Deny" and if the submission is approved status will be "Approve".
You may wonder why don't just return "APPROVED" or "DENIED" as API response. That's because Jotform supports custom workflow actions:
In this workflow if you select Custom, in the API response workflowStatus will be "Custom".
If you need further assistance feel free to let us know.