File-Linked Actions

In this section, we will analyze how to view and download the attachments of a form, as well as add and delete resources assigned to a specific form instance.

Get Attachments / Download Attachment

These actions are closely related, as the first allows listing all the attachments in the fields of a specific instance, and the second allows downloading all the files from the obtained list.

Let's look at the properties of the Get Attachments action:

Parameters
Direction
Data Type
Description

formInstanceId

In

Text

ID of the form instance

stageIndex

In

Number

Stage from which the attachments are obtained

Attachments

Out

Collection

List of URLs to download the files

On the other hand, the Download Attachment action includes the following parameters:

Parameters
Direction
Data Type
Description

AttachmentURL

In

Text

URL from which to download the file

Path

In

Number

Path where the downloaded file will be saved

Upload FormInstance Resource / Delete FormInstance Resource

These actions allow, respectively, adding and deleting a resource from a form instance. The type of resources managed through this method are not included in the form design but are added as external links with downloadable material:

The properties to define when uploading a new resource are:

Parameters
Direction
Data Type
Description

formInstanceId

In

Text

URL from which to download the file

Path

In

Number

Path where the file will be attached

To delete it, however, the following must be set:

Parameters
Direction
Data Type
Description

formInstanceId

In

Text

URL from which to download the file

ResourceName

In

Text

Name of the resource whose attachment is to be deleted

Last updated