Hi all!
I'm trying to use "gam redirect" to send the output of a GAM command to a Google Spreadsheet that I have here.
To give you some context, I'm creating Contact Groups using the following GAM command below:
When I use this command, I receive the following output in my Command Prompt/Bash screen:
I want to have this output in a row of my Google Spreadsheet. How can I do this? Please keep in mind that in this example I'm using only one user (
myu...@mydomain.com), but I have over 1000 users that I need to retrieve these contact group IDs and have in a spreadsheet for me.
Maybe something like the following command below should work? I'm just not sure what is going wrong with it:
gam redirect csv - multiprocess todrive tdfileid [My_Spreadsheet_ID_here] tdsheet id:[My_Spreadsheet_Sheet_GID_here] tdupdatesheet csv "myPrimaryEmailAddressHere.csv" gam user ~primaryEmail create contactgroup name "Company Contact Label"
Thank you for your help! (In case there is no solution/the API doesn't support, I can try using stderr and stdout to output everything in CSVs on my local machine).
Best,
Leonardo