I’m using the GSUITE activities to load files to Drive and relocate. I’m looking to also assign specific Labels and values to the files. I’ve not found a built in activity with this functionality. Does anyone have any suggestions besides using the browser ux to assign Labels to files in Drive?
Thanks in advance!
Welcome to the community
If you dont want to use ui then only way is to use the api as there is no direct activity
There are api’s to assign labels
Cheers
Anil_G Thanks for the suggestion. That’s a good idea. Would you be able to provide an example of the APIs to assign labels?
You can use Google Apps Script to automate this process. Create a script that will add labels and values to files in Drive. To do this, use the DriveApp and SpreadsheetApp API methods. For example, you could create a Google Sheets table with columns for file name, labels, and values, and then write a script that would read that table and automatically assign labels and values to the corresponding files in Drive. This script can be run on a schedule or on demand through the Google Apps Script interface or through triggers to automate the process.
