Flow that triggers email when hosted feature layer not updated within last 30 minutes

138
1
a month ago
erica_poisson
Occasional Contributor III

Hi -

I'd like to create a Flow that sends an email (or even better, an SMS) when a hosted feature layer has not been updated in more than 30 minutes. I am currently looking at the ArcGIS "Get data from feature layer", but do not see any easy way to pull the last updated date associated with the layer. 

Is this possible, and if yes, how would I do this?

Thank you!

Erica
0 Kudos
1 Reply
jcarlson
MVP Esteemed Contributor

I would do it through basic HTTP requests, which power automate should be able to do. If it's a protected layer, you'll need to add a couple steps to grab a valid token first. You could query the layer from its FeatureServer/0/query endpoint to find the max value for last_edited_date, see if that falls within the last 30 minutes, then trigger the notification accordingly.

- Josh Carlson
Kendall County GIS