Microsoft OneDrive for Business - Get file metadata

The Microsoft OneDrive for Business - Get file metadata action A tool for building the processes, logic, and direction within workflows. retrieves and stores values for the metadata attributes of a specified file in Microsoft OneDrive for Business.

For example, if you want to retrieve the metadata attributes of a file; such as name, URL, and size, you can store them in variables and use later in the workflow.

For more information about Microsoft OneDrive for Business, go to Microsoft OneDrive for Business.

Configure the Microsoft OneDrive for Business - Get file metadata action

  1. Add the action to the workflow and open the action configuration panel. For more information, see Add, rename, and copy actions.

  2. Select a Connection. If you do not have a connection, see Add a connection.
  3. Click the Microsoft OneDrive for Business - Get file metadata action.
  4. In Path, type the path of the file you want to retrieve the metadata from. You can also browse the folder structure using the browse icon ().

Microsoft OneDrive for Business - Get file metadata action fields, buttons, and settings

Field

Description

Variable types

Connection Credentials and other settings required to pass data between the workflow and the indicated service, which could be a cloud service, business application, or content store.

The Microsoft OneDrive for Business connection to use for retrieving file metadata.

(n/a)

Path

Full file path to file for retrieving metadata. Accepts any combination of typed text, text added through navigation (), and inserted variables.

Boolean, DateTime, Decimal, Integer, Text

Store file name

Variable to store the name of the file from which metadata was retrieved. Accepts an inserted variable.

Boolan, Collection, DateTime, Decimal, Integer, Text

Store file path

Variable to store the full file path of the file from which metadata was retrieved. Accepts an inserted variable.

Boolean, Collection, DateTime, Decimal, Integer, Text

Store created date

Variable to store the creation date for the file from which metadata was retrieved. Accepts an inserted variable. Format: YYYY-MM-DD, HH:MM

DateTime

Store last modified

Variable to store the modified date for the file from which metadata was retrieved. Accepts an inserted variable. Format: YYYY-MM-DD, HH:MM

DateTime

Store file size (bytes)

Variable to store the size, in bytes, of the file from which metadata was retrieved. Accepts an inserted variable.

Decimal, Integer