<?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 Is there a specific folder to save to when you want to persist data? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/is-there-a-specific-folder-to-save-to-when-you/m-p/775616#M854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am making an add-in that allows the user to add configurations which have properties like name, url, etc. I am trying to save the configurations out to a json file and I need that data to be accessed by an html file. I tried using the custom settings in the Module with OnReadSettingsAsync and OnWriteSettingsAsync, but&amp;nbsp;I don't know how I would be able to link that in my HTML file. So I wanted to know if there is a specific folder to write files to for persisting data. It should also be noted that I want the data to persist in every project and not be specific to each project.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Dec 2018 22:08:48 GMT</pubDate>
    <dc:creator>KylePerri</dc:creator>
    <dc:date>2018-12-21T22:08:48Z</dc:date>
    <item>
      <title>Is there a specific folder to save to when you want to persist data?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/is-there-a-specific-folder-to-save-to-when-you/m-p/775616#M854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am making an add-in that allows the user to add configurations which have properties like name, url, etc. I am trying to save the configurations out to a json file and I need that data to be accessed by an html file. I tried using the custom settings in the Module with OnReadSettingsAsync and OnWriteSettingsAsync, but&amp;nbsp;I don't know how I would be able to link that in my HTML file. So I wanted to know if there is a specific folder to write files to for persisting data. It should also be noted that I want the data to persist in every project and not be specific to each project.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2018 22:08:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/is-there-a-specific-folder-to-save-to-when-you/m-p/775616#M854</guid>
      <dc:creator>KylePerri</dc:creator>
      <dc:date>2018-12-21T22:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a specific folder to save to when you want to persist data?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/is-there-a-specific-folder-to-save-to-when-you/m-p/775617#M855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kyle,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I would recommend to write any data you want to persist across projects to this folder:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; settingsPath &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; System&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;IO&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Combine &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Environment&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetFolderPath&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;System&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Environment&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SpecialFolder&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CommonDocuments&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"ArcGIS"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"ArcGISPro"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Settings"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;ArcGIS Pro is already using the "ArcGIS\ArcGISPro" folder in the common documents folder across projects. You can read/write your settings from/to a file in that common location.&amp;nbsp; I am not sure about you html file question. I don't think you can read a json file from within an html file that is stored on your local disk, I am pretty sure this results in some type of access exception.&amp;nbsp; However, you could write your configuration in form of html so that it is human readable and parse the file in order to get your configuration settings.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:42:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/is-there-a-specific-folder-to-save-to-when-you/m-p/775617#M855</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2021-12-12T08:42:29Z</dc:date>
    </item>
  </channel>
</rss>

