Document Split
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.
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.
Please use document-split as the type filter when selecting this event in the decision element in flow builder.
Refer to the image below for a list of outputs
- Files - A collection of Resource containing details of the Files generated by the Split Document using AI action.
- If Generated Files' Destination was specified to be Salesforce Files, then each collection file's fields shall be as follows:
- Library will be salesforce
- id will be ContentDocumentId of the Salesforce File
- If an Generated Files' Destination was specified to be an External Storage Location, then the file's metadata is output as a Resource.
- 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.