cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
zxu11
Level III

how to open/save a data file on sharepoint in JSL?

I tried to use 

 

dt = Open("https://company.sharepoint.com/.../myfile.jmp");

 

got error: Internet Error: 403 in access or evaluation of "open".

 

Any idea?

 

Thanks.

John

3 REPLIES 3
Michael_MXAK
Level IV

Re: how to open/save a data file on sharepoint in JSL?

Hi, John, try this:

 

dlg = New Window(<<Modal, "Click OK when logged in", V List Box(Web Browser Box("https://company.sharepoint.com/", JMP Window), Text Box("Click OK when logged into Sharepoint")));

dt = Open("https://company.sharepoint.com/.../myfile.jmp");

The web browser box allows your system to handshake with SP and provide credentials to JMP.

Re: how to open/save a data file on sharepoint in JSL?

Hi,

I have the same problem, getting the 403 error when trying to download excel file from sharepoint. My script seems to work with files for which I have editing rights. The file I am trying to download I have only read-only access, can this be the problem?

 

Ressel
Level VI

Re: how to open/save a data file on sharepoint in JSL?

Very interesting! We use Box, and naturally I've repurposed your code snippet. The handshake and login work. Opening the file doesn't. Thanks for the tip