<?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 retrieve &amp;quot;Data updated&amp;quot; date from feature service in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieve-quot-data-updated-quot-date-from-feature/m-p/1364818#M83220</link>
    <description>&lt;P&gt;Hello, I'm trying to retrieve the "Data Updated" date as seen on the feature service page in AGOL and ended up with the following seemingly convoluted solution:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Use ArcGIS REST JS to query the feature service URL
request(aFeatServiceUrl, {authentication: manager}).then((response) =&amp;gt; {

    // use the service itemId from the ArcGIS Rest query to create a PortalItem (because
    // it seems like you can't make a portal item from a url)

    let portalItem = new PortalItem({
        id: response.serviceItemId
    })

    portalItem.load().then((response) =&amp;gt; {
        // the following does give me what I'm looking for
        console.log(response.created)
    })

}&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 28 Dec 2023 19:09:25 GMT</pubDate>
    <dc:creator>GaryB</dc:creator>
    <dc:date>2023-12-28T19:09:25Z</dc:date>
    <item>
      <title>retrieve "Data updated" date from feature service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieve-quot-data-updated-quot-date-from-feature/m-p/1364818#M83220</link>
      <description>&lt;P&gt;Hello, I'm trying to retrieve the "Data Updated" date as seen on the feature service page in AGOL and ended up with the following seemingly convoluted solution:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Use ArcGIS REST JS to query the feature service URL
request(aFeatServiceUrl, {authentication: manager}).then((response) =&amp;gt; {

    // use the service itemId from the ArcGIS Rest query to create a PortalItem (because
    // it seems like you can't make a portal item from a url)

    let portalItem = new PortalItem({
        id: response.serviceItemId
    })

    portalItem.load().then((response) =&amp;gt; {
        // the following does give me what I'm looking for
        console.log(response.created)
    })

}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 28 Dec 2023 19:09:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieve-quot-data-updated-quot-date-from-feature/m-p/1364818#M83220</guid>
      <dc:creator>GaryB</dc:creator>
      <dc:date>2023-12-28T19:09:25Z</dc:date>
    </item>
  </channel>
</rss>

