Welcome to Zuora Product Documentation

Explore our rich library of product information

Upload a CSV file in a workflow

Learn how to attach a CSV file to a workflow for data processing.

You can directly upload a CSV file to a workflow. After the file is uploaded, you can select the file as a data object or reference specific data fields of the file using Liquid template language in all tasks of the workflow.

  1. Open the workflow where you want to upload a CSV file, click the Settings tab of the workflow definition.
  2. In the Workflow Triggers section, if the Callout box is selected, deselect Callout.
  3. In the Mapped Input Fields and Params section, configure the input field settings for the file.
    1. Select Files in the Object list.
    2. Select File-Field in the Data Type list.
    3. Specify a name in the Field Name text box to identify the file.
    4. Select required to have the workflow prompt you to upload a file.
  4. Click Update to save the settings.
    Workflow file input setting
  5. Click the Workflow tab at the top, then click Run.

    When you manually run the workflow, a dialog is displayed prompting you to upload the file.

    Workflow file upload dialog
  6. Upload the CSV file and configure other required fields, then click Run.

After the file is uploaded, you can select this file from data object lists in tasks or reference this file using Liquid templates in the format of Data.<file_name>.<field_name>.<field_name> .

For example, if we have uploaded a file with the file name file_2, we can select this file in an Iterate task.