Events
All Event Types

Salesforce File Copied

overview this event is published for every salesforce file that is copied to external storage by using the copy salesforce files docid\ xaoztzqon8utm7hyzn bg flow action this event works for all cloudfiles supported storages this event only triggers when the copy salesforce files docid\ xaoztzqon8utm7hyzn bg action is used to initiate the copy of the file to the external storage how to use this event ? to use cloudfiles events, you must first setup your flow as shown in the intercepting cloudfiles events docid\ a1veefugb sg3o1d7vzhp article this article will introduce you to the concepts of the event type as well as event details that are returned by the get event details docid\ cfegghvnwso7bcxyevrr flow action 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 salesforce file copied as the type filter when selecting this event in the decision element in flow builder output fields from get event details the get event details provides the copied salesforce file details sub type to output the information for this event it provides useful information including source file id, destination file id, record id etc for further use refer to the image below for a list of outputs and descriptions of the parameters returned in this sub type resource a lookup field of type resource docid\ mr7u7qdhigoasucpf nlr ( cldfs resource )which shall contain the external storage resource's metadata details driveid the external storage drive id id the unique resource id library the external storage library (ex sharepoint ) name the name of the file/folder path the storage location path of the file/folder (null if the storage is google drive) type file or folder based on the resource type contentversionid contentversionid of the salesforce file ( contentdocument ) that got copied parentid the text string input in the corresponding copy salesforce files docid\ xaoztzqon8utm7hyzn bg action (e g , the record id or any other identifier provided during the action) use cases in this section we present some use cases for this platform event mark the salesforce file as copied after it has been copied into sharepoint delete a file from salesforce after it has been successfully copied into sharepoint update the initiating record fields to mark it for scheduled deletion of stored files