Create a shortcut in Google Drive?

I’m trying to build a scenario where a Google Doc template file is copied, text is inserted, and then shortcut(s) to the file are dropped into one or more other folders on a Google Drive.

Not seeing an immediate “Create a shortcut” task in the Google Drive module, I tried calling the Google Drive API, specifically Files.create. Seems to parse okay, but Google can’t find the target file ID (even when I’m sitting there with the actual file open, staring at the file ID it can’t find.)

Any ideas? Is there an easier way to do this that I’m missing?

weird, I just did a test and it works for me. Did you try with static IDs?

I just figured it out. The problem was that I was working on a shared drive. Which meant that I needed to include the supportsAllDrives URL parameter:

/v3/files?supportsAllDrives=true

Argh.

1 Like