<?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 Automatically Update Layer After Creation (e.g. in Survey123) in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/automatically-update-layer-after-creation-e-g-in/m-p/1328126#M54553</link>
    <description>&lt;P&gt;Hello Geonet community,&lt;/P&gt;&lt;P&gt;I'm working with Survey123 to create polygons in a feature layer. As soon as a polygon gets created, I want to automatically update a specific field within this new feature. Specifically, I'd like to calculate how many points from another feature service are located within this newly created polygon.&lt;/P&gt;&lt;P&gt;Thanks in advance for your insights!&lt;/P&gt;</description>
    <pubDate>Wed, 13 Sep 2023 06:49:37 GMT</pubDate>
    <dc:creator>MarcoPoetsch</dc:creator>
    <dc:date>2023-09-13T06:49:37Z</dc:date>
    <item>
      <title>Automatically Update Layer After Creation (e.g. in Survey123)</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/automatically-update-layer-after-creation-e-g-in/m-p/1328126#M54553</link>
      <description>&lt;P&gt;Hello Geonet community,&lt;/P&gt;&lt;P&gt;I'm working with Survey123 to create polygons in a feature layer. As soon as a polygon gets created, I want to automatically update a specific field within this new feature. Specifically, I'd like to calculate how many points from another feature service are located within this newly created polygon.&lt;/P&gt;&lt;P&gt;Thanks in advance for your insights!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 06:49:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/automatically-update-layer-after-creation-e-g-in/m-p/1328126#M54553</guid>
      <dc:creator>MarcoPoetsch</dc:creator>
      <dc:date>2023-09-13T06:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Update Layer After Creation (e.g. in Survey123)</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/automatically-update-layer-after-creation-e-g-in/m-p/1328139#M54556</link>
      <description>&lt;P&gt;I think you have two options:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://doc.arcgis.com/en/survey123/browser/create-surveys/webhooks.htm" target="_self"&gt;Webhooks&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://doc.arcgis.com/en/arcgis-online/create-maps/prepare-a-notebook-for-automated-execution.htm" target="_self"&gt;Scheduled notebooks&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The benefit of webhooks are they're effectively instantaneous.&amp;nbsp; The downside is they typically require set up with a webhook provider and (likely for this task) some kind of serverless computing, e.g. Azure Functions or AWS Lambda.&lt;/P&gt;&lt;P&gt;Scheduled notebooks aren't instantaneous but in my opinion they're easier to deploy and require nothing outside of the ArcGIS Online platform.&amp;nbsp; I'd recommend adding two fields to accomplish this, an "is processed" integer field that is 0 by default, and your calculated field.&amp;nbsp; Set up a notebook to run some Python that calculates your point count and sets the "is processed" flag to 1, then created a hosted feature layer view with a filter so that only processed features are visible.&amp;nbsp; Your polygons might end up in limbo for a short period of time, but they won't be exposed through the view until the point count is properly set.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 07:29:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/automatically-update-layer-after-creation-e-g-in/m-p/1328139#M54556</guid>
      <dc:creator>MobiusSnake</dc:creator>
      <dc:date>2023-09-13T07:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Update Layer After Creation (e.g. in Survey123)</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/automatically-update-layer-after-creation-e-g-in/m-p/1328152#M54558</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/115587"&gt;@MobiusSnake&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;yeah, I thought about both options.&lt;/P&gt;&lt;P&gt;However, I don't have a webhook provider. So this won't work.&lt;/P&gt;&lt;P&gt;I do like the second option of having a notebook, but as you said, it won't be instantaneous, unless I host this on Enterprise, which is for this project not an option. Thanks for sharing your ideas about how I can process new data. That's actually a good idea.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 07:49:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/automatically-update-layer-after-creation-e-g-in/m-p/1328152#M54558</guid>
      <dc:creator>MarcoPoetsch</dc:creator>
      <dc:date>2023-09-13T07:49:59Z</dc:date>
    </item>
  </channel>
</rss>

