File-Linked Actions
Last updated
Last updated
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.
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:
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:
AttachmentURL
In
Text
URL from which to download the file
Path
In
Number
Path where the downloaded file will be saved
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:
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:
formInstanceId
In
Text
URL from which to download the file
ResourceName
In
Text
Name of the resource whose attachment is to be deleted