Best answer

Send Dynamic API URLs in the Google Drive App Extension

  • 12 June 2023
  • 4 replies
  • 91 views

Userlevel 1

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? 

 

 

icon

Best answer by Troy Tessalone 12 June 2023, 23:25

View original

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

Userlevel 7
Badge +14

Hi @DocumentalWhop 

Good question.

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

Userlevel 7
Badge +14

@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.

 

Userlevel 1

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

Userlevel 1

Thank you Troy, your solution worked!