It allows you:
to get current workflow activities (Processed = false and WFState = Suspended)
Prerequisites:
In order to use this API Method you must have workflow setup completed!
Columns that can be used as filters:
Organization
Responsible (email) - mandatory
DocType
DocumentBaseType
DocPriority
EndWaitTime
Actions can be done:
list - will list only active and current workflow activities! (Processed=false and WFState=Suspended)
URL: https://api.socratecloud.com/webapi/rest/workflow/current_activity/list/{version}?startRow={0}&endRow={100}&accessToken={access_token}&Responsible={email}
Method: GET
Return: JSON object with next format:
{
"data": [
{
"Organization": "Demo SRL",
"Created": "2014-07-04 12:40:09+0300",
"CreatedBy": "BIT-Admin",
"Updated": "2014-07-04 12:40:09+0300",
"UpdatedBy": "BIT-Admin",
"Node": "DocApprove",
"WFState": "Suspended",
"Description": "UserM-Demo",
"Summary": "Expense Report 1000401: BIT-Ionut ",
"Comment": null,
"Responsible": "admin@company.com",
"DocType": "Time Expense",
"DocumentNo": "1000401",
"Processed": false,
"DocumentAmt": 123,
"BPartner": "ABC",
"BPartnerName": "ABC srl"
"Currency": "RON",
"DocumentBaseType": "Purchase Requisition",
"EndWaitTime": "2018-12-11 10:26:05+0000",
"WFPriority": 100,
"DocPriority": "Medium",
"DocDescription": "Test Workflow App"
"Orig_WF_Activity_ID": null,
"IsRequestedDetails": true
}
],
"totalRows": 1
}