Events
All Event Types
Resource Attached
overview the resource attached event is triggered whenever a file or folder in external storage is attached to a salesforce record via manual connection when a user manually attaches a resource through the cloudfiles lwc on a salesforce record page create attachment action upon successful execution of the create attachment docid\ k qcqnduqsbbky169pk9u flow action this event enables seamless automation for scenarios requiring further actions based on resource attachment, such as notifications, logging, or updates 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 in flow builder, use resource attached as the event type filter in decision element output fields from get event details the corresponding get event details flow action returns the resource attached sub type with useful information including attached resource's metadata details, salesforce object type and salesforce record id 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 connected/attached 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 object type the salesforce object's api name (e g , account , opportunity ) where the resource is attached record id the salesforce record id associated with the attachment use cases in this section we present some use cases for this platform event create a list of all manual attachments done by team members on various records to get a report of content consumption against record types read the files of the attached resource and determine if certain file types have been uploaded to advance opportunity status copy the attached record files from salesforce storage to external storage for migration or archival, and optionally delete them from salesforce