Skip to content

Get File URL

This Step helps retrieve the link to every public and private file in the defined folder of the Files service in your OneReach.ai account. To get the URL in another OneReach.ai account, use Cross-account settings.

Prerequisites

To access another OneReach.ai account, make sure you meet the following requirements:

  • Your account has the Super Admin role
  • Your Flow has the Super Admin Flow permission level
  • You have an Account ID or User/Flow Authentication token related to the OneReach.ai account you want to access

File settings

To set up this section, take the following steps:

  1. Provide the File path to the file for which the link will be returned.
  2. Optionally, turn on the toggle Link expiration time for private file to set the expiration time for the link. Note that this option is available for private files only.

File path

The file path can be defined in the File path field in the folder/filename.extension format. Use / as the divider.

Alternatively, you can provide the file path via Files of your OneReach.ai account: click Select file, then choose the file in the popup window. The file status of the selected file will be updated automatically.

Link expiration time for private file

If you are working with a private file, turn on the appropriate toggle and specify the expiration time for the URL in the Link expiration time field. This option is off by default, in which case the expiration time for the link of a private file is one day.

Cross-account settings

By default, you can upload a file only to your OneReach.ai account. To upload a file to a different OneReach.ai account, do the following:

  1. Make sure that your OneReach.ai account has the Super Admin role. To check your role, go to Action desk -> Users. The role is defined under the user name. If your role isn't Super Admin, contact OneReach.ai support to change it.
  2. Go to the General tab of the Flow, then open Deployment settings -> Flow permissions level and select Super Admin.
  3. Turn on the Use custom authentication token toggle.
  4. Choose one of the access types and provide respective data:
  • For the Authentication token type, select the USER or FLOW type and provide the respective token. Reach out to OneReach.ai support to obtain the value for this token.
  • For the Account ID type, provide the Account ID of the user you wish to access. The Account ID value is a unique UUID v4 format string value generated for each OneReach.ai account. You can find the option to Copy the account ID in the Profile settings of the OneReach.ai window under the Current account label.
  1. Save and activate the Flow.

Merge field settings

The Step returns the result as a JSON object, which contains the file download URL and stores it in the Merge field. To learn more about Merge fields, their types, and how to work with them, follow this link.

See below an example of the Merge field object’s structure:

JSON
{
  "url": ""
}
{
  "url": ""
}

Error handling

By default, the Step handles errors using a separate exit. If an error occurs during the Step execution, the Flow proceeds down the error exit, e.g., in case the Files service is unavailable. For more information on error handling, follow this link.

Reporting

The Step automatically generates Reporting events during its execution, allowing for real-time tracking and analysis of its performance and user interactions. To learn more about Reporting events, follow this link.