shlogg · Early preview
Justin Poehnelt @jpoehnelt

Using Google Drive Picker In Apps Script With Drive-picker Element

Now easier to use Google Drive Picker in Apps Script with new `<drive-picker>` web component, learn how to integrate it in a few simple steps!

It's now easier than ever to use Google Drive Picker in Apps Script with the new <drive-picker> web component, https://github.com/googleworkspace/drive-picker-element.

  
  
  Steps

Project Settings
Apps Script server functions
HTML template and JavaScript
Deploy and run





  
  
  Project settings

If you are only using the picker with drive or drive.readonly you can skip to the next section.
The primary requirement is a Google Cloud Project which will be associated with the drive.file scope. The Cloud project number should also be set on your Apps Script project. See these instructions f...