Events
All Event Types

Salesforce File Attached

overview this event is published when a file is uploaded to salesforce (as a contentdocument )and linked to a salesforce object record (as a contentdocumentlink ), through " files " or " notes & attachments " section this event is not published when a file is uploaded into salesforce as the old standard attachment format this event should not be confused with file uploaded docid\ p yy1ryebu5ecnctf0jhd , which is published when a file is uploaded to external storage through the cloudfiles widget 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 attached as the type filter when selecting this event in the decision element in flow builder output fields from get event details the corresponding get event details flow action returns the salesforce files details sub type with useful information including files, content document ids, parent id and parent type refer to the image below for a list of outputs and descriptions of the parameters returned in this sub type parent id id of the salesforce record where the file is uploaded parent type type of the salesforce record where the file is uploaded example account contentdocumentids a list of contentdocumentid when multiple files are uploaded together, only one instance of this event is published holding all the uploaded file ids as contentdocumentids files a list of salesforce file docid\ wdc3z dsbtzrpwq4a xil objects use cases here are a few use cases for this platform event copy the salesforce file auto attached by external tools such as document generation apps to external storage folders & sub folders as soon as they are uploaded to save on salesforce storage and provide access to entire team if people are manually uploading files and sometimes mistakenly upload them into the salesforce files component, copy them to external storage so that the team members not in salesforce also have the access transfer salesforce files to google drive for easier editing using the native google editors this can also be extended to moving files into sharepoint, onedrive for easier editing using microsoft tools such as word, excel, powerpoint etc