<?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 Moving a Hosted Feature Layer to a Named Folder in Portal using Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/moving-a-hosted-feature-layer-to-a-named-folder-in/m-p/1228069#M66008</link>
    <description>&lt;P&gt;I have a python script which downloads a .CSV from the internet, dyn segs the mile markers, creates a feature class, then uploads it to our portal environment and the script runs great and as expected. The issue is that the script takes the feature class and uploads it as a hosted feature layer into our root folder in Portal. I want to be able to put this hosted feature class into a named folder that already exists in our Portal environment using python. Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2022 20:10:01 GMT</pubDate>
    <dc:creator>NateRogers1</dc:creator>
    <dc:date>2022-11-02T20:10:01Z</dc:date>
    <item>
      <title>Moving a Hosted Feature Layer to a Named Folder in Portal using Python</title>
      <link>https://community.esri.com/t5/python-questions/moving-a-hosted-feature-layer-to-a-named-folder-in/m-p/1228069#M66008</link>
      <description>&lt;P&gt;I have a python script which downloads a .CSV from the internet, dyn segs the mile markers, creates a feature class, then uploads it to our portal environment and the script runs great and as expected. The issue is that the script takes the feature class and uploads it as a hosted feature layer into our root folder in Portal. I want to be able to put this hosted feature class into a named folder that already exists in our Portal environment using python. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 20:10:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/moving-a-hosted-feature-layer-to-a-named-folder-in/m-p/1228069#M66008</guid>
      <dc:creator>NateRogers1</dc:creator>
      <dc:date>2022-11-02T20:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a Hosted Feature Layer to a Named Folder in Portal using Python</title>
      <link>https://community.esri.com/t5/python-questions/moving-a-hosted-feature-layer-to-a-named-folder-in/m-p/1247994#M66531</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/97894"&gt;@NateRogers1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im going to make an assumption that you are using ArcPy and the&amp;nbsp;arcpy.UploadServiceDefinition_server() function, there is an&amp;nbsp;&lt;EM&gt;in_folder&lt;/EM&gt; parameter you can use.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.UploadServiceDefinition_server(sd_output_filename, server_url, in_folder_type="EXISTING", in_folder="NAME OF FOLDER")&lt;/LI-CODE&gt;&lt;P&gt;If my assumption is incorrect, you can share some code for assessment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 11:37:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/moving-a-hosted-feature-layer-to-a-named-folder-in/m-p/1247994#M66531</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2023-01-13T11:37:19Z</dc:date>
    </item>
  </channel>
</rss>

