<?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 Date Updated in Open Data Script in ArcGIS Hub Questions</title>
    <link>https://community.esri.com/t5/arcgis-hub-questions/date-updated-in-open-data-script/m-p/1603849#M6596</link>
    <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;Our Open Data portal shows the Date Updated when the last time our Hosted Feature Layers were updated and not the date of the data.&lt;/P&gt;&lt;P&gt;I had Notebook at one time that would update this date to show our data is dynamically updated weekly but can't find it.&lt;/P&gt;&lt;P&gt;Does anyone have a sample of how to update this value?&amp;nbsp; &amp;nbsp; &amp;nbsp; We can't currently use editor tracking fields so I would like script that does it to show the users our data is updated frequently.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Tue, 08 Apr 2025 16:57:39 GMT</pubDate>
    <dc:creator>MeleKoneya</dc:creator>
    <dc:date>2025-04-08T16:57:39Z</dc:date>
    <item>
      <title>Date Updated in Open Data Script</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/date-updated-in-open-data-script/m-p/1603849#M6596</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;Our Open Data portal shows the Date Updated when the last time our Hosted Feature Layers were updated and not the date of the data.&lt;/P&gt;&lt;P&gt;I had Notebook at one time that would update this date to show our data is dynamically updated weekly but can't find it.&lt;/P&gt;&lt;P&gt;Does anyone have a sample of how to update this value?&amp;nbsp; &amp;nbsp; &amp;nbsp; We can't currently use editor tracking fields so I would like script that does it to show the users our data is updated frequently.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 16:57:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/date-updated-in-open-data-script/m-p/1603849#M6596</guid>
      <dc:creator>MeleKoneya</dc:creator>
      <dc:date>2025-04-08T16:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Date Updated in Open Data Script</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/date-updated-in-open-data-script/m-p/1606066#M6603</link>
      <description>&lt;P&gt;This is how I was able to update the data via python&lt;/P&gt;&lt;P&gt;#connect to GIS&lt;BR /&gt;from arcgis.gis import GIS&lt;BR /&gt;gis = GIS("&lt;A title="https://cos-gis.maps.arcgis.com/%22" href="https://cos-gis.maps.arcgis.com/%22" target="_blank" rel="noreferrer noopener nofollow"&gt;https://website.maps.arcgis.com/", "UserName", "**********")&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#Get user that owns folder&lt;BR /&gt;user = gis.users.get("UserName")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#Get list of items&lt;BR /&gt;list = user.items(folder='Open Data')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for i in list:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i.update(item_properties = {'accessInformation': "COS"})&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Updating the accessinformation sets the updated date to today&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 15:26:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/date-updated-in-open-data-script/m-p/1606066#M6603</guid>
      <dc:creator>MeleKoneya</dc:creator>
      <dc:date>2025-04-15T15:26:19Z</dc:date>
    </item>
  </channel>
</rss>

