List files in root folder Action in OneDrive For Business Connector.(Power Automate Cloud flows)

Japanese version.

This action retrieves a list of files and folders stored in the top-level folder of OneDrive.

How to use

Select the "OneDrive For Business" connector when adding steps to the flow.

Select "List files in root folder" from the "Actions" menu.

There are no parameters to specify for this action.

Get files and folders information as an array.

Dynamic contents

Get files and folders information as an array.

Its use requires "Apply to each".

Specify a dynamic content "Body" in "Select an output from previous steps".

This will cause the action specified in "Apply to each" to be repeated for all files and directories stored.

Typical items that can be retrieved for files and folders subject to repetition are as follows.

Id

File identifier.

Name

File name.

Path

Full path of the file.

Last modified time

Last update.

Last modified by

Last updated by user name.

Size

Bytes in file.

Media type

MINE type of file.

Is folder?

True if it is a folder; False if it is not a folder.

Retrieve the hierarchy below the top level.

Only the top level files and folders can be retrieved with this action; anything below that level is not included.

If you wish to proceed to a lower level, you can further use "Condition" and "List files in folder".

Put "Condition" in place within "Apply to each".

The parameters of the "Condition" are as follows.

LeftIs folder?
Centeris equal to
Rigthtrue

Put "List files in folder" in place of "If yes".

Specify the "ID" of the dynamic content in "Folder".

Add "Apply to each".

Specify the "value" of the new "Apply to each" parameter "List files in folder".

This allows you to repeat folders and files one level down.

For those who want to learn Power Automate Cloud flow effectively

The information on this site is now available in an easy-to-read e-book format.

Or Kindle Unlimited (unlimited reading).

You willl discover how to about basic operations.

By the end of this book, you will be equipped with the knowledge you need to use Power Automate Cloud flow to streamline your workflow.

Links

OneDrive For Business Connector(Power Automate Cloud flows)