Skip to main content
Best answer

Send Dynamic API URLs in the Google Drive App Extension

  • June 12, 2023
  • 4 replies
  • 121 views

DocumentalWhop

I’m using the Google Drive App Extension to to automatically update a file in Google Drive with specific Labels. In the Google Drive API, I need to specific the unique fileId for the file I’m trying to edit. For each zap, I would like to dynamically update the fileId. How do I update this? 

 

 

Best answer by Troy Tessalone

@DocumentalWhop

In the Query Parameters, you don’t need to specify the “fileId” since that’s already specified in the URL with {{fileId}}

 

Instead, you need to define the “fileId” as an input.

 

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

4 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • June 12, 2023

Hi @DocumentalWhop 

Good question.

Please link to the GDrive API endpoint docs that you are referencing.


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • Answer
  • June 12, 2023

@DocumentalWhop

In the Query Parameters, you don’t need to specify the “fileId” since that’s already specified in the URL with {{fileId}}

 

Instead, you need to define the “fileId” as an input.

 


DocumentalWhop

Here’s the Google Drive API link. You see in the HTTP request that the URL destination requires a fileId field.

https://developers.google.com/drive/api/reference/rest/v3/files/modifyLabels


DocumentalWhop

Thank you Troy, your solution worked!