Creating a Process using REST API

Using REST API to create a process

If ZFlow is running under zflow

https://{servername}/zflow/rest/process/create/{templateName}

Example:

https://servername.zflow.io/zflow/rest/process/create/PO%20Acknowledgement

JSON Data

{

      "OrderNumber": "P100002",
      "SupplierID": "992323",
      "POLineItem": [
             {
                   "LineNumber": "1",
                   "ReleaseNumber": "1"
              },
             {
                   "LineNumber": "1",
                   "ReleaseNumber": "2"
              }
       ]
}

Using curl

REST API for Adding Attachments to a Process

Using curl

curl -v --location 'https://{servername}/rest/processdata/{CollID}/attachFiles' \
-u '{username}:{password}' \
--form 'file1=@"/path-to-file/file1name.csv"' \
--form 'file2=@"/path-to-file/file2name.xlsx"' \
--form 'file3=@"/path-to-file/file3name.pdf"'