<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to open .addin stored on sharepoint site using JSL? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-open-addin-stored-on-sharepoint-site-using-JSL/m-p/232259#M46077</link>
    <description>&lt;P&gt;Thank you GZ for your offline help -- I was able to solve the problem with your good advice! For any other users who have this problem, the key is to specify the location of the file differently as shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Works&lt;/P&gt;&lt;P&gt;\\sharepoint.xxx.com@SSL\DavWWWRoot\(folder on sharepoint)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does not work&lt;/P&gt;&lt;P&gt;&lt;A href="https://sharepoint.xxx.com/(folder" target="_blank"&gt;https://sharepoint.xxx.com/(folder&lt;/A&gt; on sharepoint)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Nov 2019 20:04:12 GMT</pubDate>
    <dc:creator>drew_baumgartel</dc:creator>
    <dc:date>2019-11-05T20:04:12Z</dc:date>
    <item>
      <title>How to open .addin stored on sharepoint site using JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-open-addin-stored-on-sharepoint-site-using-JSL/m-p/227946#M45230</link>
      <description>&lt;P&gt;I've built an auto-update feature into an add-in. The new version of the add-in is stored on a sharepoint. I am able to open jmp tables from the sharepoint just fine, but am unable to open the addin file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Works:&lt;/P&gt;&lt;P&gt;Open("&lt;A href="https://sharepoint.xxx/jmp_table.jmp" target="_blank"&gt;https://sharepoint.xxx/jmp_table.jmp&lt;/A&gt;")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does not work:&lt;/P&gt;&lt;P&gt;Open("&lt;A href="https://sharepoint.xxx/addin_try.addin" target="_blank"&gt;https://sharepoint.xxx/addin_try.addin&lt;/A&gt;")&lt;/P&gt;&lt;P&gt;Open("&lt;A href="https://sharepoint.xxx/addin_try.zip" target="_blank"&gt;https://sharepoint.xxx/addin_try.zip&lt;/A&gt;")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought maybe I could copy the add-in from the sharepoint to a local directory and then open the add-in, but that didn't work either:&lt;/P&gt;&lt;P&gt;Copy File("&lt;A href="https://sharepoint.xxx/addin_try.addin" target="_blank"&gt;https://sharepoint.xxx/addin_try.addin&lt;/A&gt;", "C:\temp\addin_try.addin")&lt;/P&gt;&lt;P&gt;Copy File("&lt;A href="https://sharepoint.xxx/addin_try.zip" target="_blank"&gt;https://sharepoint.xxx/addin_try.zip&lt;/A&gt;", "C:\temp\addin_try.zip")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Copy File command gives a "Path is invalid" error, and the invalid path identified is a concatentation of the default directory and the URL (why?), with the URL mangled a bit:&lt;/P&gt;&lt;P&gt;C:\my_default_directory\C--https---sharepoint&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suggestions?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 19:40:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-open-addin-stored-on-sharepoint-site-using-JSL/m-p/227946#M45230</guid>
      <dc:creator>drew_baumgartel</dc:creator>
      <dc:date>2019-10-02T19:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to open .addin stored on sharepoint site using JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-open-addin-stored-on-sharepoint-site-using-JSL/m-p/227986#M45232</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1130"&gt;@drew_baumgartel&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi Drew! If you are using JMP 14 you might want to look up in the Scripting Index &amp;gt; Objects &amp;gt; HttpRequest.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a JMP example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
request = New HTTP Request(
	URL(
		"https://community.jmp.com/kvoqx44227/attachments/kvoqx44227/sample-data/49/1/BlueBirds.jmp"
	),
	Method( "Get" )
);
file = request &amp;lt;&amp;lt; Download( "$TEMP/BlueBirds.jmp", replace );
If( !Is Empty( file ),
	Open( file )
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Oct 2019 01:01:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-open-addin-stored-on-sharepoint-site-using-JSL/m-p/227986#M45232</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-10-03T01:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to open .addin stored on sharepoint site using JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-open-addin-stored-on-sharepoint-site-using-JSL/m-p/228035#M45242</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GZ -- great to hear from you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the example from the scripting index. I think it's probably the right JSL, but may not work here due to security "features". When I tried the example directly from the scripting index, I got an error message similar to the one below (I tried a few other sites besides community.jmp.com to make sure it wasn't an issue with one particular website)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Failed to connect to nhl.bamcontent.com port 443: Timed out&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I tried the same with the sharepoint location, I got a different error, even when attempting to download a jmp table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTTP/1.1 401 Unauthorized&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help. I will see if I can find another location where all add-in users will have access.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 18:12:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-open-addin-stored-on-sharepoint-site-using-JSL/m-p/228035#M45242</guid>
      <dc:creator>drew_baumgartel</dc:creator>
      <dc:date>2019-10-03T18:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to open .addin stored on sharepoint site using JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-open-addin-stored-on-sharepoint-site-using-JSL/m-p/232259#M46077</link>
      <description>&lt;P&gt;Thank you GZ for your offline help -- I was able to solve the problem with your good advice! For any other users who have this problem, the key is to specify the location of the file differently as shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Works&lt;/P&gt;&lt;P&gt;\\sharepoint.xxx.com@SSL\DavWWWRoot\(folder on sharepoint)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does not work&lt;/P&gt;&lt;P&gt;&lt;A href="https://sharepoint.xxx.com/(folder" target="_blank"&gt;https://sharepoint.xxx.com/(folder&lt;/A&gt; on sharepoint)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 20:04:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-open-addin-stored-on-sharepoint-site-using-JSL/m-p/232259#M46077</guid>
      <dc:creator>drew_baumgartel</dc:creator>
      <dc:date>2019-11-05T20:04:12Z</dc:date>
    </item>
  </channel>
</rss>

