Platform Events
All Event Types

Document Processed

Overview

This event is published once a file is processed using Process Document using AI action. The document-processed event type can be used to filter this event. The corresponding Get Event Details flow action provides the Processed Document ID which identifies the processed data in the file along with the Context and File Details.

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 document-processed 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 - ProcessedDocumentID

The Processed Document ID is a unique CloudFiles identifier that represents the data of a processed document. The ProcessedDocumentID can be reused as often as needed to reference the document for various CloudFiles Document AI actions.

The ProcessedDocumentID is a mandatory input parameter for actions like Query Document or Query Document (Batch) .

Document image


2 - Context

The context value specified in the input, which helps identify the event’s source or anyother intended details.

3 - File

Details of the processed file specified in the input, which helps identify the file post processing.

Document image

  1. If processed File is a Salesforce File, then:
    1. Output File's Library will be salesforce
    2. Output File's id will be ContentDocumentId of the Salesforce File
  2. If an External Storage's File is processed, then the file's metadata is output.