<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Powerapps HTTP not working in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/powerapps-http-not-working/m-p/1523702#M4818</link>
    <description>&lt;P&gt;I'm having some trouble with a process I am trying to develop.&amp;nbsp; What I want to do:&lt;/P&gt;&lt;P&gt;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.&amp;nbsp; &amp;nbsp;I also want this new circle polygon to be centered on the point layer.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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.&amp;nbsp; To figure this out I am using an HTTP action to filter out the most recently created item through by finding the highest OBJECTID.&lt;/P&gt;&lt;P&gt;I have a token which appears to be working however, I can't seem to get the correct url.&amp;nbsp; This is what I am using:&lt;/P&gt;&lt;P&gt;&lt;A href="https://xyzxyzx.maps.arcgis.com/arcgis/rest/services/Development_site_application/FeatureServer/0/query" target="_blank" rel="noopener"&gt;https://xyzxyzx.maps.arcgis.com/arcgis/rest/services/Development_site_application/FeatureServer/0/query&lt;/A&gt;&lt;BR /&gt;?where=1%3D1&lt;BR /&gt;&amp;amp;outFields=OBJECTID&lt;BR /&gt;&amp;amp;orderByFields=OBJECTID%20DESC&lt;BR /&gt;&amp;amp;resultRecordCount=1&lt;BR /&gt;&amp;amp;f=json&lt;BR /&gt;&amp;amp;token=@{body('HTTP_Action_to_get_Access_Token')}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The last section after token, takes the value from a previous HTTP action which gets the new token.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the issue I am having is with the url:&amp;nbsp;&lt;A href="https://xyzxyzx.maps.arcgis.com/arcgis/rest/services/Development_site_application/FeatureServer/0/query" target="_blank" rel="noopener"&gt;https://xyzxyzx.maps.arcgis.com/arcgis/rest/services/Development_site_application/FeatureServer/0/query&lt;/A&gt;&amp;nbsp;(the xyzx would normally have the name of the organisational account.&lt;/P&gt;&lt;P&gt;Any help with this would be much appreciated.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2024 10:14:10 GMT</pubDate>
    <dc:creator>TobyChapman</dc:creator>
    <dc:date>2024-08-19T10:14:10Z</dc:date>
    <item>
      <title>Powerapps HTTP not working</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/powerapps-http-not-working/m-p/1523702#M4818</link>
      <description>&lt;P&gt;I'm having some trouble with a process I am trying to develop.&amp;nbsp; What I want to do:&lt;/P&gt;&lt;P&gt;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.&amp;nbsp; &amp;nbsp;I also want this new circle polygon to be centered on the point layer.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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.&amp;nbsp; To figure this out I am using an HTTP action to filter out the most recently created item through by finding the highest OBJECTID.&lt;/P&gt;&lt;P&gt;I have a token which appears to be working however, I can't seem to get the correct url.&amp;nbsp; This is what I am using:&lt;/P&gt;&lt;P&gt;&lt;A href="https://xyzxyzx.maps.arcgis.com/arcgis/rest/services/Development_site_application/FeatureServer/0/query" target="_blank" rel="noopener"&gt;https://xyzxyzx.maps.arcgis.com/arcgis/rest/services/Development_site_application/FeatureServer/0/query&lt;/A&gt;&lt;BR /&gt;?where=1%3D1&lt;BR /&gt;&amp;amp;outFields=OBJECTID&lt;BR /&gt;&amp;amp;orderByFields=OBJECTID%20DESC&lt;BR /&gt;&amp;amp;resultRecordCount=1&lt;BR /&gt;&amp;amp;f=json&lt;BR /&gt;&amp;amp;token=@{body('HTTP_Action_to_get_Access_Token')}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The last section after token, takes the value from a previous HTTP action which gets the new token.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the issue I am having is with the url:&amp;nbsp;&lt;A href="https://xyzxyzx.maps.arcgis.com/arcgis/rest/services/Development_site_application/FeatureServer/0/query" target="_blank" rel="noopener"&gt;https://xyzxyzx.maps.arcgis.com/arcgis/rest/services/Development_site_application/FeatureServer/0/query&lt;/A&gt;&amp;nbsp;(the xyzx would normally have the name of the organisational account.&lt;/P&gt;&lt;P&gt;Any help with this would be much appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 10:14:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/powerapps-http-not-working/m-p/1523702#M4818</guid>
      <dc:creator>TobyChapman</dc:creator>
      <dc:date>2024-08-19T10:14:10Z</dc:date>
    </item>
  </channel>
</rss>

