This activity can only be used in Microflows.
This action is ignored and does not work when a microflow is called from an offline, native, or hybrid app. For more information, see the Microflows section of the Offline-First Reference Guide.
The Download file activity can be used to enable the browser to download a specific file. The end-user either sees a download pop-up window or the file is shown directly in the browser.
There are two sets of properties for this activity, those in the dialog box on the left, and those in the properties pane on the right:
The Download file properties pane consists of the following sections:
3 Action Section
The Action section of the properties pane shows the action associated with this activity.
You can open a dialog box to configure this action by clicking the ellipsis (…) next to the action.
You can also open the dialog box by double-clicking the activity in the microflow or right-clicking the activity and selecting Properties.
3.1 File document
File document specifies the file to be downloaded. The file data is stored in an object of entity System.FileDocument or a specialization of this entity.
3.2 Show File in Browser
Show file in browser defines whether the file is downloaded to a location specified by the end-user or shown directly in the browser.
|True||File is downloaded to the location for temporary internet files and shown on a new page in the browser.|
|False||File is downloaded to the location specified by the end-user.|
On mobile devices files are always shown in a browser window.
Many browsers implement pop-up window blockers preventing them from being opened non-interactively, such as through a microflow. For mobile devices, this means that triggering downloads from a microflow is only possible after disabling the pop-up window blocker. You could consider using a File Manager widget to let the user initiate the download manually.
4 Common Section
For more information on properties in this section, see Common Properties.