const formSubmissionApproval =
await approvals.getFormApprovalFlowInstance(1)
// Use data here...
The id of the form approval flow instance
const formSubmissionApproval =
await approvals.getFormSubmissionApproval(
'aaaaaaaa-bbbb-4543-cccc-addddd543454',
)
// Use data here...
The id of the form submission approval
const { approvals, meta } =
await approvals.searchFormSubmissionAdministrationApprovals({
formsAppId: 1,
formId: 2,
limit: 50,
offset: 0,
})
Search options
Optional
externalAn exact externalId to search by
Optional
formThe exact formApprovalFlowInstanceId to search by
Optional
formThe formId of the approvals
The formsAppId of the approvals app
Optional
lastAn array of usernames to filter by
The number of results to return. Maximum is 50
The offset of the results to return. Use this in conjunction with limit
for pagination
Optional
statuses?: string[]An array of statuses to filter by ('PENDING'
,
'CLARIFICATION_RECEIVED'
, 'CLARIFICATION_REQUIRED'
, 'APPROVED'
,
'CLOSED'
)
Optional
submissionAn exact submissionId to search by
Optional
submittedThe date submitted after as an ISO string
Optional
submittedThe date submitted before as an ISO string
Optional
updatedThe date updated after as an ISO string
Optional
updatedThe date updated before as an ISO string
Example