Get file metadata using id in Google Drive Connector(Power Automate Cloud flows)

Japanese version.

Retrieves additional information (metadata) such as file names of files already in Google Drive by specifying file IDs.

This is used when other metadata information is needed while the file ID is being obtained by other actions.

How to use

Select the "Google Drive" connector when adding steps to the flow.

Select "Get file metadata using id" from the "Actions" menu.

Set parameters.

In many cases, the "Id" is specified from the dynamic content of other GoogleDrive actions.

If you specify a file with a picker, it looks like a file path, but it is only a display and the content is an ID.

If you delete the specified file and then create a file with the same name, it will be treated as a different file.

An error will be generated if the file does not exist, so it is necessary to re-specify it in the flow.

Dynamic content

Typical items used in subsequent steps are as follows.

Additional information about the target file can be obtained.

NameTypeDescription
IdTextIdentifier of the file/folder.
NameTextFile and folder names.
PathTextFull path.
It is difficult to use as is, so string manipulation is often required.
MediaTypeTextMINE type of file.
LastModifiedByTextUser name of the last updater.
LastModifiedText(Datetime)Last updated.
SizeNumberThe number of bytes in the file.

If you need the file content, which is the content of the file, use the "Get file content using Id" action or "Get file content using path" action to get it.

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

Google Drive Connector