Platform Events
All Event Types

Content Version Created Batch

Overview

The Content Version Created Batch Event is published when a Create Salesforce Files (Batch) flow action action successfully creates all the Salesforce Files (Content Document) from a list of external storage files. The content-version-created-batch event type can be used to filter this event. The corresponding Get Event Details flow action returns the Content Version Created (Batch) sub-type with useful information including files, content document Ids, parent Id and parent type.

This event is particularly useful in scenarios where the creation of Salesforce Files needs to initiate downstream processes or workflows.

How To Use This Event ?

To use CloudFiles Platform Events, you must first setup your platform event triggered flow as shown in the CloudFiles Event Handler Flow Template. This article will introduce you to the concepts of the event type in the CloudFiles Event Object 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.

Document image


Event Type For Decision Filter

Please use content-version-created-batch 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 Content Version Created (Batch) sub-type with useful information including the created Salesforce Files ContentVersionIds, corresponding External Storage Files metadata details, and ParentId (i.e. recordId input in the corresponding Create Salesforce Files (Batch) action). Refer to the image below for a list of outputs and descriptions of the parameters returned in this sub-type.

Document image

  1. ContentVersionsCreated - A collection lookup Field which shall contain list of corresponding Content Version Created event details.

    

    Document image
    
  2. ContentVersionIds - The Text Collection RecordIds of the created Salesforce Files Content Versions
  3. ParentId - The text string input into the corresponding Create Salesforce Files (Batch) action. (e.g., the Record ID or any other identifier provided during the action).