Auto-Save PDFs to a Shared Google Drive Folder
Saving PDFs to a shared folder makes them immediately accessible to every team member without any manual sharing step. The PDF appears in the shared folder as soon as the conversion finishes.
Getting the shared folder ID
In Google Drive, navigate to the shared drive and open the target folder. The folder ID is in the URL after /folders/. Copy it and use it in DriveApp.getFolderById(sharedFolderId) in your Apps Script.
Permission requirements
The account running the script must have at least Contributor access to the shared drive folder. Viewer access is not enough to create files. Ask the shared drive admin to grant the service account or script owner the appropriate access level.
Notifying the team after saving
After saving the PDF to the shared folder, send a Slack message or email with a direct link to the file. Use DriveApp.getFileById(newFile.getId()).getUrl() to get the shareable link. Include the file name and the team folder it was saved to in the notification.
Frequently Asked Questions
Can I save to a folder in someone else's shared drive?
Yes, if the account running the script has been granted Contributor or higher access to that shared drive.
Related article
Use Docs to PDF with Google Drive →Ready to Try It?
Install the free Chrome extension and start converting your Google Docs to PDF in one click.
Install Free Extension