Move file to Folder Path - Path not found

In order to move a file in Google Drive, file known by it´s file id, to a folder, I´m searching for the Folder´s path using it´s Id.

But the path of the folder has My Drive/sub_folders… in the beginning of the path.
This path is not working.

When I test the module, moving the file to the same final folder, using the “choose path option”, the path does not use the “My Drive” in the beginning of the folder´s path.

As I understang, the MOVE A FILE module asks me where the folder is as an option: MY DRIVE.

I imagine that´s why the final path is defined as “MY DRIVE/…” and not being found.

Hi @felipemarquardt, Does the path work when you DON’T include My drive/ in the path ? You could trim that.

Yes, It works when I write the path directly, without My Drive/.
But when using the variable in the module, the module inserts My Drive/ In the beginning of the path causing failure.

@felipemarquardt, when you insert the variable, put instead : replace({{variable}};My Drive/;emptystring)

2 Likes