Platform Events
All Event Types

Document Split

Overview

This event is published once a merged file (a PDF file created merging by merging different files into one ) is split into multiple files intelligently /automatically by CloudFiles Document AI using Split Document using AI flow action.

This event is particularly useful in scenarios where the splitting of Resources 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.

Document image


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 document-split as the type filter when selecting this event in the decision element in flow builder.

Output Fields From Get Event Details

Refer to the image below for a list of outputs

Document image

  1. Files - A collection of Resource containing details of the Files generated by the Split Document using AI action.
    1. If Generated Files' Destination was specified to be Salesforce Files, then each collection file's fields shall be as follows:
      1. Library will be salesforce
      2. id will be ContentDocumentId of the Salesforce File
    2. If an Generated Files' Destination was specified to be an External Storage Location, then the file's metadata is output as a Resource.
  2. RecordId- The Context value specified as the input for corresponding Split Document using AI action, which helps identify the event’s source or anyother intended details.