taers232c / GAMADV-XTD3

Command line tool to manage Google Workspace
732 stars 86 forks source link

"ERROR: Header" in bulk CSV #154

Closed vazome closed 3 years ago

vazome commented 3 years ago

The create aliases supports multiple objects to process but when you redirect it to CSV it throws an error: gam csv "C:\Users\Daniel\Desktop\TestEmailCollection.csv" gam create aliases ~email1, ~email2 user "~main_email" image

But it works if you leave just one header. Not quite sure is problem with me or GAM.

GAMADV-XTD3 6.03.15 - https://github.com/taers232c/GAMADV-XTD3 - pyinstaller
Ross Scroggs <ross.scroggs@gmail.com>
Python 3.9.5 64-bit final
google-api-python-client 2.1.0
httplib2 0.19.0
Windows 10 10.0.19042 SP0 Multiprocessor Free AMD64
Path: C:\GAMADV-XTD3
taers232c commented 3 years ago

When a CSV column reference is the only item in an argument you say: ~header, when it's part of an argument you say: ~~header~~

You want aliases "~~email1~~,~~email2~~"

vazome commented 3 years ago

@taers232c, thank you!