Skip to content

[ACTION] Fix: google_docs-create-document-from-template: Make folderId parameter optional #18590

@sseungwonnn

Description

@sseungwonnn

Is there a specific app this action is for?

  1. google_docs-create-document from template
  2. google_drive-create-document from template
    (it looks that those are working with the same logic and using same library.

Please provide a link to the relevant API docs for the specific service / operation.
Currently, the tool requires a folderId to be required. However, this often causes failures due to permission issues when the folder is not accessible. (the library currently uses a very broad scopehttps://www.googleapis.com/auth/drive and https://www.googleapis.com/auth/documents)

According to the README of the library you guys are using (google-docs-mustaches), if the destination ID is not provided, the file is created in the same path as the source file (fallback logic).

To align with this behavior and prevent unnecessary failures, it would be better to make the folderId parameter optional, and rely on the library’s default fallback when no ID is provided - allowing files to be created directly in the root drive without selecting a specific folder.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions