<?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 Unable to save file to Sharepoint in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Unable-to-save-file-to-Sharepoint/m-p/342106#M59107</link>
    <description>&lt;P&gt;Hi all. At the end of what has been (to me) a complex script to extract specific data from an Excel file stored on Sharepoint, then perform necessary analysis, and save as an interactive HTML file, I seem to be struggling with what should be a very basic step. I can no longer see the wood for the trees. Am I missing something here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This format works for saving to my desktop or any drive on my PC:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;myPlatform &amp;lt;&amp;lt; Save Interactive HTML( "$DESKTOP/Whole Milk SPC.htm" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This doesn't work for Saving to Sharepoint:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;myPlatform &amp;lt;&amp;lt; Save Interactive HTML( "https://dairygoldcloud.sharepoint.com/CI/Whole%20Milk%20SPC.htm" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I missing something obvious? I'm not getting any errors back.&lt;/P&gt;
&lt;P&gt;I have write access to the Sharepoint folder and can manually upload the file, but the&amp;nbsp;file just won't save to Sharepoint via JSL script. I'm puzzled. Any help would be appreciated.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 22:00:48 GMT</pubDate>
    <dc:creator>kom</dc:creator>
    <dc:date>2023-06-09T22:00:48Z</dc:date>
    <item>
      <title>Unable to save file to Sharepoint</title>
      <link>https://community.jmp.com/t5/Discussions/Unable-to-save-file-to-Sharepoint/m-p/342106#M59107</link>
      <description>&lt;P&gt;Hi all. At the end of what has been (to me) a complex script to extract specific data from an Excel file stored on Sharepoint, then perform necessary analysis, and save as an interactive HTML file, I seem to be struggling with what should be a very basic step. I can no longer see the wood for the trees. Am I missing something here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This format works for saving to my desktop or any drive on my PC:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;myPlatform &amp;lt;&amp;lt; Save Interactive HTML( "$DESKTOP/Whole Milk SPC.htm" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This doesn't work for Saving to Sharepoint:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;myPlatform &amp;lt;&amp;lt; Save Interactive HTML( "https://dairygoldcloud.sharepoint.com/CI/Whole%20Milk%20SPC.htm" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I missing something obvious? I'm not getting any errors back.&lt;/P&gt;
&lt;P&gt;I have write access to the Sharepoint folder and can manually upload the file, but the&amp;nbsp;file just won't save to Sharepoint via JSL script. I'm puzzled. Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:00:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Unable-to-save-file-to-Sharepoint/m-p/342106#M59107</guid>
      <dc:creator>kom</dc:creator>
      <dc:date>2023-06-09T22:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to save file to Sharepoint</title>
      <link>https://community.jmp.com/t5/Discussions/Unable-to-save-file-to-Sharepoint/m-p/342439#M59146</link>
      <description>&lt;P&gt;That URL looks different than what I am used to, below is an example of what works for me.&amp;nbsp; If you manually upload the file can you download or Open() it using JMP?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;https://company.sharepoint.com/:x:/r/sites/Site/Shared%20Documents/Folder/Subfolder/File%20name.xlsx&lt;/PRE&gt;
&lt;P&gt;This link might help if you are not able to download the file due to permissions issues.&amp;nbsp; You might start by saving the file locally and using Copy Directory() to push it to sharepoint:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="Open microsoft office 365 cloud-based excel from JMP/JSL?" uid="242367" url="https://community.jmp.com/t5/Discussions/Open-microsoft-office-365-cloud-based-excel-from-JMP-JSL/m-p/242367#U242367" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 22:48:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Unable-to-save-file-to-Sharepoint/m-p/342439#M59146</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2021-03-01T22:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to save file to Sharepoint</title>
      <link>https://community.jmp.com/t5/Discussions/Unable-to-save-file-to-Sharepoint/m-p/344003#M59356</link>
      <description>&lt;P&gt;Many thanks for your response (and apologies for my delayed response).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I previously used the links you included to enable me read from Sharepoint. This worked fine.&lt;/P&gt;&lt;P&gt;Tried various combinations of URL, but it's simply not working. In the end, I got IT involved and the workaround is to setup a PowerShell that will automatically transfer the JMP html file to the specified location at predefined times each day. Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 09:59:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Unable-to-save-file-to-Sharepoint/m-p/344003#M59356</guid>
      <dc:creator>kom</dc:creator>
      <dc:date>2020-12-23T09:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to save file to Sharepoint</title>
      <link>https://community.jmp.com/t5/Discussions/Unable-to-save-file-to-Sharepoint/m-p/344011#M59362</link>
      <description>&lt;P&gt;I'm glad you found a solution. Note that you can run powershell scripts from within JMP, so you could kick that PS routine using a Run Program() function in your JSL script. Here is an example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

commands = {
	"hostname\!n", 
	"exit\!n"
};

icommand = 0;

RP = Run Program(
	Executable( "PowerShell.exe" ),
	ReadFunction( Function( {this}, Write( this &amp;lt;&amp;lt; Read ) ) ),
	WriteFunction(
		Function( {this},
			icommand++;
			If( icommand &amp;lt;= N Items( commands ),
				this &amp;lt;&amp;lt; Write( commands[icommand] );
			,
				this &amp;lt;&amp;lt; WriteEOF;
			);
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Dec 2020 14:46:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Unable-to-save-file-to-Sharepoint/m-p/344011#M59362</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2020-12-23T14:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to save file to Sharepoint</title>
      <link>https://community.jmp.com/t5/Discussions/Unable-to-save-file-to-Sharepoint/m-p/344015#M59366</link>
      <description>&lt;P&gt;I didn't know (or even consider) that!&lt;/P&gt;&lt;P&gt;Many thanks. Have a great Christmas.&lt;/P&gt;&lt;P&gt;Kieran&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 15:31:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Unable-to-save-file-to-Sharepoint/m-p/344015#M59366</guid>
      <dc:creator>kom</dc:creator>
      <dc:date>2020-12-23T15:31:50Z</dc:date>
    </item>
  </channel>
</rss>

