Uploading and Retrieving Workflow Documents

Follow these steps to successfully upload and retrieve workflow files.

Uploading a File

  1. Generate a Session ID
    • Start a workflow to get a SessionId.
  2. Associate a File with the Session ID
    • Use the SessionId to link the file.
  3. Submit All Data Inputs
    • Submit all required data, including the file details.

Retrieving a File

  1. (Optional) Get Full Transaction Details
    • If you don’t have the FileData string (document identifier) from the upload response, retrieve it from the transaction details.
  2. Retrieve the File
    • Use the FileData string as the key in the query parameter to fetch the file.

Error Handling

  • You cannot upload a file to a workflow that is in the "end" state.
  • Make sure to submit the file name exactly as returned by the Submit File step to avoid errors.