Rsp = DRIVE.files().create(body=METADATA, media_body=SRC_FILENAME).execute() See comments in code for further details. It assumes that: a) you have a designated folder in your Drive where the CSV file is saved/uploaded to b) the CSV file is named "report.csv" and the data in it comma-delimited and c) the CSV data is imported into a designated spreadsheet. You can programmatically import data from a csv file in your Drive into an existing Google Sheet using Google Apps Script, replacing/appending data as needed.īelow is some sample code.
0 Comments
Leave a Reply. |