# File Updated

> `UiPath.MicrosoftOffice365.Activities.Files.Triggers.FileUpdated`

`UiPath.MicrosoftOffice365.Activities.Files.Triggers.FileUpdated`

## Description

Executes an automation workflow when a new file is updated in the specified OneDrive location. An update can consist of: renaming a file, modifying its contents and saving it, modifying its metadata etc.

This trigger supports personal Drives, shared Drives, SharePoint libraries, as well as Groups.

### Scopes

This activity requires the following scopes:

* Files.Read

OR

* Files.ReadWrite

OR

* Files.Read.All

OR

* Files.ReadWrite.All

OR

* Sites.Read.All

OR

* Sites.ReadWrite.All

## Project compatibility

Windows | Cross-platform

## Configuration

* **Microsoft OneDrive & SharePoint connection** - The connection for the Microsoft 365 account to use in the activity.
* **In location** - The folder where the file is created. Select the **Folder**![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/activities-docs-image-folder_icon-818994f9.png) icon to browse the OneDrive folders. This field accepts `IResource` input.
  + Select the **Reload File Data** option if you've modified your folders and need to retrieve the latest data.
* **Additional filters** - Select this field to open the **Filter builder** and add additional filters. Supports filtering on the following fields: Created by (email), File extension, Name.

### Additional options

**Output**

* **File** - The updated file that can be used further in the workflow. Automatically generated output variable. You can use it as it is or save it with a different name. You can use this in other activities, such as [Send Email](https://docs.uipath.com/activities/other/latest/productivity/office365-send-mail).
* **Job Data** - Contains job info, such as Process name, Process version, Workflow name, Robot name, and mode of execution.

## Example

![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/activities-docs-image-294110-6dbaac71.webp)

See also:

* [Files activities](https://docs.uipath.com/activities/other/latest/user-guide/o365-cross-platform-activities#files-activities)
* [Create folder](https://docs.uipath.com/activities/other/latest/productivity/office365-drive-create-folder-connections)
* [For Each File/Folder](https://docs.uipath.com/activities/other/latest/productivity/office365-drive-for-each-file-folder-connections)
* [Move File/Folder](https://docs.uipath.com/activities/other/latest/productivity/office365-drive-move-item-connections)
