<?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: Question: Clone item with desired name/title in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/question-clone-item-with-desired-name-title/m-p/1187787#M7528</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/208334"&gt;@RossMa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can rename after the clone has taken place&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis import GIS

agol = GIS("home")

## you can get the item_id after the clone,
## either programmatically and add to the clone script
## or manually and use this as a separate scripT
fs = agol.content.get("new_item_id")

properties_dict = {
    "title" : "Insert_New_Title"
}

fs.update(item_properties=properties_dict)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jun 2022 14:02:13 GMT</pubDate>
    <dc:creator>Clubdebambos</dc:creator>
    <dc:date>2022-06-29T14:02:13Z</dc:date>
    <item>
      <title>Question: Clone item with desired name/title</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/question-clone-item-with-desired-name-title/m-p/1174828#M7411</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there a way to clone item (hosted feature layer) with a user defined name or title for new hosted feature layer?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did look the python api&amp;nbsp; clone module , it dosen't list any naming related argument&lt;/P&gt;&lt;P&gt;clone_items&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;items&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;folder&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;None&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;item_extent&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;None&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;use_org_basemap&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;False&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;copy_data&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;True&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;copy_global_ids&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;False&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;search_existing_items&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;True&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;item_mapping&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;None&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;group_mapping&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;None&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;owner&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;None&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;preserve_item_id&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;False&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I was wondering if the name or title can be defined in the clone_item funtion, other than end up with&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RossMa_0-1652822026388.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/41549iD00C71B96E479CF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RossMa_0-1652822026388.png" alt="RossMa_0-1652822026388.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 21:14:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/question-clone-item-with-desired-name-title/m-p/1174828#M7411</guid>
      <dc:creator>RossMa</dc:creator>
      <dc:date>2022-05-17T21:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Question: Clone item with desired name/title</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/question-clone-item-with-desired-name-title/m-p/1187787#M7528</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/208334"&gt;@RossMa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can rename after the clone has taken place&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis import GIS

agol = GIS("home")

## you can get the item_id after the clone,
## either programmatically and add to the clone script
## or manually and use this as a separate scripT
fs = agol.content.get("new_item_id")

properties_dict = {
    "title" : "Insert_New_Title"
}

fs.update(item_properties=properties_dict)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 14:02:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/question-clone-item-with-desired-name-title/m-p/1187787#M7528</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2022-06-29T14:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Question: Clone item with desired name/title</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/question-clone-item-with-desired-name-title/m-p/1549490#M10779</link>
      <description>&lt;P&gt;I would love this to be an argument in the function. I'm creating occasional backups of items and want the suffix "BACKUP_YYYYMMDD" in the cloned name to clearly delineate backups from the original source data. Having to locate the id of the newly created cloned item is a bit bothersome and just adds unnecessary lines of code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 14:08:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/question-clone-item-with-desired-name-title/m-p/1549490#M10779</guid>
      <dc:creator>AdamGaudet</dc:creator>
      <dc:date>2024-10-17T14:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Question: Clone item with desired name/title</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/question-clone-item-with-desired-name-title/m-p/1576519#M11069</link>
      <description>&lt;P&gt;I would also like this feature. Being able to rename it makes it easier to identify after the fact. Having tons of artifacts with the same name is very time consuming to sift through.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 18:10:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/question-clone-item-with-desired-name-title/m-p/1576519#M11069</guid>
      <dc:creator>chris_del101</dc:creator>
      <dc:date>2025-01-16T18:10:51Z</dc:date>
    </item>
  </channel>
</rss>

