Workflows List

workflowslist

Parameter

Type

I/O

Description

IN

Parameters described in Overview

Company

String

IN

The company context

Action

String

IN

Identifier for the list requested

Supplier

String

IN

Identifier for the supplier context

Jobphase

String

IN

Identifier for phase context

Response

XML / JSON

OUT

An XML tree /JSON string containing stages the user has access to

Description

Calling the expenses API with an action of workflowslist retrieves a list of stages and associated descriptions.

Return Values

Response – List of stages

The structure of the response is:

<workflows morepages="False" totalpages="1" totalrows="2">
  <workflow uuid="1AA3F80F-5057-4B0F-AE10-8EE9881A09BF">
    <workflow_workflowcode>1/00000560.006</workflow_workflowcode>
    <workflow_workflowdescription>stage 1</workflow_workflowdescription>
  </workflow>
</workflows>
"errormessage": "",
    "responsecode": 1,
    "pagerows": 0,
    "totalrows": 2,
    "responsestatus": "OK",
    "success": true,
    "responsemessage": "",
    "errorcode": 0,
    "totalpages": 1,
    "pagenumber": 1,
    "data": [
        {
            "workflow_workflowdescription": "Stage 1",
            "uuid": "1AA3F80F-5057-4B0F-AE10-8EE9881A09BF",
            "workflow_workflowcode": "1/00000560.006"
        },
        {
            "workflow_workflowdescription": "Stage 2",
            "uuid": "7D712885-AF46-4A2B-B469-2C7966D35168",
            "workflow_workflowcode": "1/00000560.005"
        }
    ]