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:
// Use ArcGIS REST JS to query the feature service URL
request(aFeatServiceUrl, {authentication: manager}).then((response) => {
// 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) => {
// the following does give me what I'm looking for
console.log(response.created)
})
}