Overview
The Resource Moved event is published whenever a file or folder is relocated within external storage using CloudFiles. This can occur either when a user moves a resource through the CloudFiles Lightning Widget component in Salesforce or when a Move Resource flow action runs successfully. The event is useful for triggering downstream processesβsuch as notifications, logging, or automated updatesβwhenever a document is reorganized into a new folder.
How to use this Event?
To use CloudFiles Events, you must first setup your flow as shown in the Intercepting CloudFiles Events 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 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-moved as the event type filter in decision element.

Output Fields From Get Event Details
When a Resource Moved event is intercepted and you call Get Event Details, it returns a Resource Moved event detail record with information about the moved file/folder and its new location. Key output fields (parameters) in this event detail include the resourceβs identifiers and destination information.
Refer to the image below for a list of outputs and descriptions of the parameters returned in this sub-type.

The important fields are described below:
- Library- The external storage library (for example, sharepoint, google, s3, azure, onedrive, dropbox, box or cloudfiles) where the resource resides.
- DriveID - The external storage Drive Id
- Id - The unique identifier of the resource in the external storage (the file or folder ID)
- SourceParentFolderId - The parent folder ID under which the resource was originally present beore moving
- Type - The type of resource that was moved (will be file or folder depending on the resource)
- DestinationId - The folder Id under which the resource is moved (essentially the resource's new parent folder Id)