Google Drive · Arazzo Workflow
Google Drive Copy a Template File into a Folder
Version 1.0.0
Resolve a template file, copy it into a destination folder under a new name, and read the copy back.
View Spec
View on GitHub
Cloud StorageCollaborationDocument ManagementDriveFilesGoogleStorageArazzoWorkflows
Provider
Workflows
copy-template-into-folder
Duplicate a template file into a destination folder with a new name.
Reads the template file's metadata, copies it into the destination folder under the supplied name using the copy endpoint's patch semantics, and reads the resulting copy back to verify its name and placement.
1
resolveTemplate
getFile
Read the template's metadata to confirm it exists and to capture its MIME type before copying, so a bad template id fails before any file is written.
2
copyTemplate
copyFile
Copy the template, applying the new name and destination folder in the same request. The copy endpoint uses patch semantics, so the parents array supplied here replaces the template's own parents on the copy.
3
confirmCopy
getFile
Read the new copy back, selecting parents explicitly, to confirm it was renamed and filed into the destination folder rather than beside the template.