AddFormFileAttachments Step

Last published at: May 14th, 2024

Description:

Add file attachment to form instance.

Inputs

  • Name - Step Name
  • formInstanceID-- Variable/Global/Form Variable to hold the form instance ID       
  • formDefID—Select form definition   
  • fileFieldMappings —Mapping of file Control ID to upload
  • ignoreNotFoundFiles - Ignore not found files. Select (Yes/No)

Returns

  • True – file uploaded successfully
  • False - file not uploaded 
Usage:


Example:

Let’s build and execute the addformfileattchments example

  • Create a new definition called “addfilestoformDef”
  • Select the definition and click the “design” button
  • Drag the above process steps to the canvas
  • Connect the dots between the start and process steps as shown in the above graphic
  • Click on the “routeForm” step to configure its properties. Select any existing form definition in the dropdown list. Configure the variable.formID to hold the form instance. Configure the user to route the form to. 
  • Click on the “addFormFileAttachments” step to configure its properties. Configure the variable.formID to hold the form instance. Select the form definition in the dropdown list. Map the file list to the file Control ID to upload during process run time.  

  • Click on the “getfileattachments” step to configure its properties. Configure the variable.formID to hold the form instance.  Select the form definition in the dropdown list. Map the file list to the file Control ID to upload during process run time. 
  • Save the process definition, create a new process instance, and execute. The routeForm should submit the form and route to users and "addFormFileAttachment" step should add the file list to the form instance. The file list is fetched using the "getfileattachments"