Platform Events
CloudFiles Event Handler Flow ...

CloudFiles Event Object

Introduction

On various actions related to files, CloudFiles publishes a Salesforce platform event named CloudFiles Event. This Event has following fields - 

  1. Type - Type of the event. For example - file-uploaded, folder-created etc.
  2. Object Type - Salesforce record type where the event originated. Example - Account, Case etc.
  3. DO NOT USE Fields - The data & Request Id fields are not useful under any circumstances. Contact us if you feel you need to use them.

Below section gives more details on these.

Event Fields

Type

Field Name: cldfs_Type_c

This field provides information of the type of event published. For example, a CloudFiles event is published whenever a Salesforce File is attached to a Salesforce record. The event is also published whenever a file is uploaded in the CloudFiles widget (i.e. directly to SharePoint). The type field of this event is going to be salesforce-file-attached.or file-uploaded based on the reason of the event.

There are several types of events published. You can find the exact text values for each event type in the respective articles. These are indexed in All Event Types.

Object Type -

Field Name: cldfs_Object_Type_c

This field provides information of the Object on which the CloudFiles event or action is performed. For example, for a salesforce file attached onto an Account record, the Object Type field of the event is going to be Object API Name i.e. Account. Use the Salesforce Object API Name to filter using this field.

For event originated outside a record context, this field is null

DO NOT USE Fields

The following fields should not be used by you in your implementation. If you feel you need to use these fields in any way and you have explored all other alternatives, you should contact our team first. These fields are not designed to be used by the implementation.

  1. Data - Data related to the event. This fields is used internally by the Get Event Details flow action to return the event details. This does not represent the full event details which is actually returned by the Get Event Details Actions. Refer to step 2 & 3 in the CloudFiles Event Handler Flow Template article.
  2. Request Id - Exists when the event is published as a result of an asynchronous action. Is not useful.