cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Learn some foundational elements of JMP Scripting Language (JSL) and how to extend point & click automation into repeatable, shareable routines. Register. June 26, 2 p.m. US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
D_Meakin
Level II

Importing a Gsheet

Has anyone figured out how to import a gsheet from a google drive?

2 REPLIES 2
jthi
Super User

Re: Importing a Gsheet

One option could be to use Drive API's Files: export , you should be able to export it as xlsx by using correct MIME Type. Export seems seems to have 10MB limit.

Or use methods mentioned here https://www.labnol.org/internet/direct-links-for-google-drive/28356/#google-sheets---export-links 

 

This will most likely download the whole file but only open one sheet

Names Default To Here(1);

f = New HTTP Request(
	Method("GET"),
	URL("https://docs.google.com/spreadsheets/d/1FH3Y2-vRUgojntPkCSJI5Pd-15rsJ1a0SFCRaT-iqgo/export?format=xlsx")
) << send;

dt = Open(
	f,
	Worksheets("787 Status Snapshot"),
	Worksheet Settings(Headers Start on Row(1), Data Starts on Row(2))
);
-Jarmo
D_Meakin
Level II

Re: Importing a Gsheet

Jthi,

 

This solution worked in part. That is I could get it to work with a file for which I could get a URL. However when I use the Pick File function on Google Drive the URL it returns fails spectacularly, where as if I get the URL directly from Google browser address bar it works like a charm. 

Recommended Articles