Overview

This event is published when a file is uploaded into External Storage through the CloudFiles widget from Salesforce.

This event should not be confused with Salesforce File Attached which is published when a file is uploaded to Salesforce native storage, through "Files" or "Notes & Attachments" section.

How to use this Event ?

To use CloudFiles Events, you must first setup your flow as shown in the Intercepting CloudFiles Events article. This article will introduce you to the concepts of the event type as well as event details that are returned by the Get Event Details flow action.

Once you are familiar with these, you will understand how to interpret & use these as illustrated in the sections below.

Event Type For Decision Filter

Please use file-uploaded as the type filter when selecting this event in the decision element in flow builder

Output Fields From Get Event Details

The corresponding Get Event Details flow action returns the Uploaded File Details sub-type with useful information including file name, drive id, record id etc for further use. Refer to the image below for a list of outputs and descriptions of the parameters returned in this sub-type.

  1. Id - The Resource Id of the uploaded file in external storage. This is the id the other CloudFiles flow actions take.
  2. DriveId - Id of the drive in case of SharePoint or Google Drive storage
  3. Library - One of sharepoint, google, onedrive, box, dropbox, s3, cloudfiles
  4. Name - Name of the uploaded file
  5. ParentFolderId - The Resource Id of the folder the file was uploaded into.
  6. RecordId - Id of the Salesforce record where the file is uploaded. This is empty when the file was uploaded from the Content Library tab rather than from a record page.
  7. UserId - The Salesforce User Id of the user who uploaded the file.
  8. FileConnectResourceId - Deprecated, no longer in use. It still appears in the Get Event Details output and in the Flow Builder picker, where its label reads "Deprecated(Do Not Use)". Do not use it in new flows.

RecordId is only populated for uploads made against a Salesforce record. A file uploaded from the Content Library tab carries an empty RecordId, so a flow that branches on it will do nothing for those uploads. Use ParentFolderId where you need to know which folder the file landed in.

Use Cases

  1. If the uploaded file name contains the word "Proposal" in it, update the opportunity stage to "Value proposition".
  2. When a file is uploaded through CloudFiles widget, update the count of uploads in a property.
  3. When a resume is uploaded, use document AI to extract student info and auto-generate an interview scoring sheet using templates created in google docs.