Follow these steps to successfully upload and retrieve workflow files.
Uploading a File
- Generate a Session ID
- Start a workflow to get a SessionId.
- Associate a File with the Session ID
- Use the SessionId to link the file.
- Submit All Data Inputs
- Submit all required data, including the file details.
Retrieving a File
- (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.
- 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.