javascript - Automate the Import Function from Google Sheets -
is there way automate import function google sheets in javascript?
something like:
<!doctype html> <html> <head> <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script type="text/javascript"> var datadestinationurl = 'https://docs.google.com/spreadsheets/d/1s3pu-sr4bwabtqkyx2bdlzicf8snko5d6v6o-ysot7g'; var datasource = 'c:\myexcel.xlsx' function importdata() { datadestinationurl.import (datasource) } </script> </head> <body> <input type="button" onclick="importdata" value="submit" /> </body> </html>
what i'm looking this:
https://www.dataeverywhere.com/use-excel-sheets
but because corporation restrictions cannot have adds-on. however, can program script in javascript , use script.
further explanation:
most reports done in excel because connected database in ibm cognos tm1 through plug-in or add-in, data sits in ibm cognos tm1 , through plug-in push excel.
however, google sheets doesn't have (as far know) way connect ibm cognos tm1.
reports extensive, several tabs, many rows , columns copying , pasting information many reports google sheets won't solution.
there import solution, not 1 file 1 time. there multiple files update daily, weekly, biweekly , monthly, import option not solution either. need human intervention won't solution. need find out how automatically synchronize google sheets excel files.
i trying think on way "import", transfer, synchronize or similar indicate location of excel file (c;\myexcel.xlsx) , automatically have information replicated google sheets.
can maybe google sheets api? if so, know how?
thank much
i'd script following steps:
- csv-download google sheets
- put csv shared directory
- write simple import script tm1 turbointegrator
- trigger import ti using tm1 chore or tm1 rest api call
Comments
Post a Comment