apps
2023.10
false
- Getting Started
- Before You Begin
- How To
- Access the production URL of an app
- Build a Mobile-Friendly App
- Embed Apps
- Embed Maps
- Set External Context
- Use arrays to populate Dropdown, Multiselect dropdown, and Radio Button controls
- Use DataTable with Table and Edit Grid controls
- Uploading and downloading a file using the File Uploader control
- Downloading a file using an Image control
- Downloading a file using a URL
- Use Input Mask
- Notifications
- Using VB Expressions
- Designing your App
- Events and Rules
- Rule: If-Then-Else
- Rule: Open a Page
- Rule: Open URL
- Rule: Close Pop-Over/Bottom Sheet
- Rule: Show Message
- Rule: Show/Hide Spinner
- Rule: Set Value
- Rule: Start Process
- Rule: Reset Values
- Rule: Upload File to Storage Bucket
- Rule: Download File From Storage Bucket
- Rule: Create Entity Record
- Rule: Update Entity Record
- Rule: Delete Entity Record
- Rule: Add to Queue
- Rule: Trigger workflow
- Leveraging RPA in your App
- Leveraging Entities in Your App
- Leveraging Queues in Your App
- Application Lifecycle Management (ALM)
- Basic Troubleshooting Guide
Downloading a file using a URL
Apps User Guide
Last updated Nov 11, 2024
Downloading a file using a URL
To download a file using a URL, follow these steps:
You should know the name of the file, and the storage bucket containing it for the download. The filename may either be obtained
from a process, or located in the storage bucket in Orchestrator.
- Before designing your app, go to Orchestrator. Access the storage bucket containing the file you want to download. Copy the name of the file.
- Go to the app where you want to use this feature.
- Add a new App variable, of the type AppsFile. Name it.
- On the MainPage, add a new Label control and configure it:
- Rename the Label control to "Download file", including quotation marks.
- Click the Style tab of the Label control. Change the style of the Label control. This will help the user identify the link as a downloadable. We recommend using italics and blue.
- Switch to the Events section of the Download file control. Click the Create rule button.
- Add a new Download file from Storage bucket rule. Configure it:
- In the When completed section, add a Set Values rule.
- In the Items to set field, type
[variable_name].Name
.- Set the downloaded file name inside the Value field. This will update the file name once the file is downloaded.
- In the When completed section, add a new Open Url rule.
- In the Url field of the rule, type
[variable_name].Url
.
- In the Url field of the rule, type
When you click on the Download file in runtime, the file is downloaded in a new tab.