Resource Updated
This event is published when metadata of a Resource (file or folder) is updated or changed from Salesforce using CloudFiles. For example, updating a Sharepoint file's Metadata column value through CloudFiles widget. The event type resource-updated can be used to filter this event. The corresponding Get Event Details flow action returns the Updated Resource Details sub-type with useful information including resource, record id and user id for further use.
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 resource-updated as the type filter when selecting this event in the decision element in flow builder.
The corresponding Get Event Details flow action returns the Updated Resource Details sub-type with useful information including file resource, record Id and user 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 Resource consists driveId, name, Id, path, library and type of the file that is being viewed.
- Record Id - Record Id of the record to which resource belongs.
- User Id - User Id of the salesforce user.
In this section we present some use-cases for this platform event.
- Update opportunity status when a SharePoint upload is marked as proposal.
- Create a claim object when a folder with more than five files is marked as Complete.
- Run AI to extract information when an uploaded file is marked as a resume.