Platform Events
All Event Types

Resource Updated Event

Overview

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.

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 resource-updated 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 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.

Document image

  1. Resource - A Resource consists driveId, name, Id, path, library and type of the file that is being viewed.
  2. Record Id - Record Id of the record to which resource belongs.
  3. User Id - User Id of the salesforce user.

Use Cases

In this section we present some use-cases for this platform event.

  1. Update opportunity status when a SharePoint upload is marked as proposal.
  2. Create a claim object when a folder with more than five files is marked as Complete.
  3. Run AI to extract information when an uploaded file is marked as a resume.