I'm having some trouble with a process I am trying to develop. What I want to do:
When I add a new feature in my hosted feature layer which has point features, I want to automatically create a new item to another hosted polygon layer that is a circle with a radius based on a feature from the original point layer. I also want this new circle polygon to be centered on the point layer.
The reason I want to create a new polygon as oppose to just changing the point display, is I will need to adjust the shape of the polygon layer once it is created.
I am trying to use the trigger function in powerapps however all the trigger does is lets me know that a new record has been created, as far as I can tell, it does not pass on any details of which record. To figure this out I am using an HTTP action to filter out the most recently created item through by finding the highest OBJECTID.
I have a token which appears to be working however, I can't seem to get the correct url. This is what I am using:
https://xyzxyzx.maps.arcgis.com/arcgis/rest/services/Development_site_application/FeatureServer/0/qu...
?where=1%3D1
&outFields=OBJECTID
&orderByFields=OBJECTID%20DESC
&resultRecordCount=1
&f=json
&token=@{body('HTTP_Action_to_get_Access_Token')}
The last section after token, takes the value from a previous HTTP action which gets the new token.
I think the issue I am having is with the url: https://xyzxyzx.maps.arcgis.com/arcgis/rest/services/Development_site_application/FeatureServer/0/qu... (the xyzx would normally have the name of the organisational account.
Any help with this would be much appreciated.