Flow Actions

Create File Request

Introduction

A File Request is way to receive files from customers. Files received using a File Request can be moved to a preconfigured folder automatically. In this article, we will see how to create a File request block using a flow action.

1 - Add Create File Request Action to your Flow

In your flow builder, search for the element named "Create File Request". You can also find this action in the CloudFiles category when you click "action" element in "Add Element" box. Select the action to insert it into the flow.

2 - Configure parameters

Please configure following parameters after inserting the flow action

  1. Description - A description of the file request that will be visible to customers
  2. Destination Folder Id - (Optional). If you want to automatically move the received files to a folder, please provide the folder id here. The folder id can come from an earlier action in the flow like "Create Folder", or can be read from the record.
  3. DriveId - Drive Id for SharePoint or Google Drive. This parameter is not needed for other storages. To get the value of Drive Id, please refer to Create Folder flow action
  4. Library- One of sharepoint, google, onedrive, dropbox, box, cloudfiles
  5. Name - Name of the file request
Document image


3 - Returned Value

The Apex action returns a custom type called File Request. You can use fields from this type, like id, name etc. You can use these fields in subsequent flow actions or save them as custom fields on record to use outside this flow.