Select to view content in your preferred language

Get attributes from feature service using Power Automate

727
1
03-14-2022 01:00 PM
KennethLindhardt1
Frequent Contributor

Hi, I'm not sure how to do this at all.

following different posts I can update attributes from input from Power automate using UpdateFeature. I fail to understand how to query, if I want to get the attribute information.

This is giving me access to the feature with the correct object ID 

KennethLindhardt1_0-1647287376581.png

For querying, I would expect to do similar.

To write to a feature I'm using POST, and something like this, which is working:

KennethLindhardt1_1-1647287916763.png

What if I want to get the creator for example, how do I doo that.

 

Thank you. 

 

 

 

 

0 Kudos
1 Reply
by Anonymous User
Not applicable

Hi, if you are still working on this problem, I wrote a little about how I used query in my Blog post Changing hosted Feature layers with Power automate and Rest APIs

 

one good way that I've been checking to see if my URL in power automate is correct is going to the feature I want to query in arcGIS Online and scrolling down to the bottom where it says url and clicking view 

AnnaGonzalez_0-1649177007362.png

Scroll down to the bottom and press Query 

AnnaGonzalez_1-1649177079901.png

Make sure the format is in JSON at the bottom, but just mess around until you get the results that you want. 

once you can find, in your case the creator, copy the url until the token and insert the generated token. 

 

In your case I think you need to replace the "&returnIdsOnly=true" with "&outFields=**insert the name of the field here**"

 

Hopefully this fixes your problem and help you trouble shoot in the future!! 

 

0 Kudos