<?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: Sample code to add new records to hosted feature class in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/sample-code-to-add-new-records-to-hosted-feature/m-p/1562557#M73620</link>
    <description>&lt;P&gt;You can use ArcPy and the Append tool for this. See docs &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/append.htm" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Your target is the URL to the Feature Layer in AGOL.&lt;/P&gt;&lt;P&gt;You can either use field mapping to map fields or you can set to NO_TEST. NO_TEST will append in where fields match from source to target and skip fields with no match.&lt;/P&gt;&lt;P&gt;I would recommend performing on a test feature layer first to see it in action.&lt;/P&gt;&lt;P&gt;You could also setup to use the Append tool manually in ArcGIS Pro and then use the Copy Python Command option (dropdown arrow attached to the Run button) and copy the code snippet into a script to see the syntax in use. This is also a good way to grab the code if you have setup the Field Matches.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Nov 2024 10:15:41 GMT</pubDate>
    <dc:creator>Clubdebambos</dc:creator>
    <dc:date>2024-11-26T10:15:41Z</dc:date>
    <item>
      <title>Sample code to add new records to hosted feature class</title>
      <link>https://community.esri.com/t5/python-questions/sample-code-to-add-new-records-to-hosted-feature/m-p/1562210#M73619</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;I am looking for a source code in arcpy python to append specific records from one source feature class in SDE or FGDB to a target hosted feature class in AGOL.&lt;/P&gt;&lt;P&gt;The hosted feature class has more fields that the source.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 14:36:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sample-code-to-add-new-records-to-hosted-feature/m-p/1562210#M73619</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2024-11-25T14:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code to add new records to hosted feature class</title>
      <link>https://community.esri.com/t5/python-questions/sample-code-to-add-new-records-to-hosted-feature/m-p/1562557#M73620</link>
      <description>&lt;P&gt;You can use ArcPy and the Append tool for this. See docs &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/append.htm" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Your target is the URL to the Feature Layer in AGOL.&lt;/P&gt;&lt;P&gt;You can either use field mapping to map fields or you can set to NO_TEST. NO_TEST will append in where fields match from source to target and skip fields with no match.&lt;/P&gt;&lt;P&gt;I would recommend performing on a test feature layer first to see it in action.&lt;/P&gt;&lt;P&gt;You could also setup to use the Append tool manually in ArcGIS Pro and then use the Copy Python Command option (dropdown arrow attached to the Run button) and copy the code snippet into a script to see the syntax in use. This is also a good way to grab the code if you have setup the Field Matches.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 10:15:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sample-code-to-add-new-records-to-hosted-feature/m-p/1562557#M73620</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2024-11-26T10:15:41Z</dc:date>
    </item>
  </channel>
</rss>

