Select to view content in your preferred language

Counting Records From A Hosted Service Using Power Automate?

74
1
Wednesday
DaveK
by
Frequent Contributor

Hello! 

I'm trying to create a Power Automate flow which would count the records in a feature service and email that count on a daily basis. I've created basic PA flows before, but I can't figure out where to start with this one or which AGO connector to use to pull the data. The docs for these connectors is so minimal. Any help with this would be appreciated. 

Thanks! 

0 Kudos
1 Reply
CalvinHarmin
Frequent Contributor

If there's not a quick answer on using an ArcGIS connector for this, here's how you can do it via an HTTP action instead:

Overview/proof of concept:

CalvinHarmin_1-1762437141411.png

 



HTTP action to get AGOL token with REST API

CalvinHarmin_0-1762436424564.png

Query hosted feature layer HTTP action using REST API

Note: the URL for the hosted feature layer needs to include the /0 or whatever the sub-layer index number is.

CalvinHarmin_2-1762437195543.png

 

 

0 Kudos