Monday, March 3, 2025

## Retrieve Your Files from a Specific Google Drive Folder in Google Sheets ### Description This Google Apps Script allows you to retrieve all files owned by you from a specific Google Drive folder and list them in a Google Sheet. It extracts the **File ID, Name, and URL** of each file inside the folder and displays them in a structured format. This is useful for organizing and managing files within a particular folder in your Drive. ### Instructions 1. **Create a Google Sheet** named `FilesFromSpecificfolder`. 2. **Set Up the Sheet Structure**: - **Cell A1**: Enter the name of the folder from which you want to retrieve files. - **Columns B, C, and D**: These will be automatically filled with **File ID, Name, and URL** after running the script. 3. **Add the Script**: - Open your Google Sheet. - Go to `Extensions > Apps Script`. - Delete any existing code in the script editor. - Paste the script below and save it. 4. **Run the Script**: - Click the play button (▶️) in the Apps Script editor. - The script will search for the specified folder, retrieve files owned by you, and populate the sheet with their details. ### Apps Script Code ### Copy Code Click the button below to copy the code easily: ```html ```

No comments:

Post a Comment