<?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 Re: Trigger Python Script After AGOL Hosted Feature Layer is Edited in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/trigger-python-script-after-agol-hosted-feature/m-p/1683044#M11848</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/886507"&gt;@MichielHorikx&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;There are plenty of solutions out there that can accomplish this. For starters, here is a link that shows the basic structure for editing other features.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/advanced-gdb-attribute-rules-editing-external-features-with-attribute-rules" target="_blank" rel="noopener"&gt;Advanced attribute editing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In addition to that, depending on your workflow, here are some ways to go about.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Attribute rule: you can setup a rule, if it is a feature in either sde or gdb&lt;/LI&gt;&lt;LI&gt;If the layer is hosted:&lt;OL&gt;&lt;LI&gt;Use the field maps form to apply the same logic but used strictly as a form calculation&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;If the edits are infrequent:&lt;OL&gt;&lt;LI&gt;You can use a simple field calculation and apply the same calculation but it is dependent on if the layer is either in an sde or gdb&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Mon, 09 Feb 2026 14:42:54 GMT</pubDate>
    <dc:creator>RPGIS</dc:creator>
    <dc:date>2026-02-09T14:42:54Z</dc:date>
    <item>
      <title>Trigger Python Script After AGOL Hosted Feature Layer is Edited</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/trigger-python-script-after-agol-hosted-feature/m-p/1634344#M11510</link>
      <description>&lt;P&gt;I was wondering if there was a way to trigger a Python script after a hosted feature layer is edited. Right now, the Python script runs every 15 minutes on Task Scheduler. This works fine, but seems excessive as the script really only needs to run after the hosted feature layer is edited. TIA.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 22:51:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/trigger-python-script-after-agol-hosted-feature/m-p/1634344#M11510</guid>
      <dc:creator>B_NewGE</dc:creator>
      <dc:date>2025-07-18T22:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Python Script After AGOL Hosted Feature Layer is Edited</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/trigger-python-script-after-agol-hosted-feature/m-p/1634378#M11511</link>
      <description>&lt;P&gt;ArcGIS Notebook server allows for this using feature service webhooks and python in an ArcGIS Notebook.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/enterprise-administration/notebook/execute-notebook/" target="_blank"&gt;https://developers.arcgis.com/rest/enterprise-administration/notebook/execute-notebook/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Unfortunately the execute notebook API is only available in ArcGIS Enterprise, and not ArcGIS online. We are relegated to scheduled runs in agol hosted notebooks.&lt;/P&gt;&lt;P&gt;It should be similar for task scheduler. Options scheduling, but to allow for an external process to invoke a local python script... Seems problematic.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jul 2025 00:46:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/trigger-python-script-after-agol-hosted-feature/m-p/1634378#M11511</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2025-07-19T00:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Python Script After AGOL Hosted Feature Layer is Edited</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/trigger-python-script-after-agol-hosted-feature/m-p/1634383#M11512</link>
      <description>&lt;P&gt;Do your edits require ArcPy, or can they be done using the ArcGIS API for Python?&amp;nbsp; If it's the latter you could create a serverless function (AWS Lambda, Azure Functions, etc.) and put the editing script in it, then have a webhook call it.&amp;nbsp; If I remember correctly the webhook should pass a token that the serverless function can use for authentication when calling edit_features.&lt;/P&gt;&lt;P&gt;If you aren't already doing this, you could minimize the amount of editing your notebook is doing using timestamps and edit tracking:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a hosted feature table with a single row and a single attributes, a "last notebook call" date/time value, and set it to some time in the past like 1/1/2025.&lt;/LI&gt;&lt;LI&gt;Enable edit tracking on features.&lt;/LI&gt;&lt;LI&gt;When the scheduled task runs, capture the current time (let's call this "Time A").&lt;/LI&gt;&lt;LI&gt;Query for features with 'last updated' values more recent than your last notebook call.&amp;nbsp; Only apply edits to those features.&lt;/LI&gt;&lt;LI&gt;Update your "last notebook call" value to the "Time A" value captured earlier.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sat, 19 Jul 2025 09:12:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/trigger-python-script-after-agol-hosted-feature/m-p/1634383#M11512</guid>
      <dc:creator>MobiusSnake</dc:creator>
      <dc:date>2025-07-19T09:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Python Script After AGOL Hosted Feature Layer is Edited</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/trigger-python-script-after-agol-hosted-feature/m-p/1634392#M11513</link>
      <description>&lt;P&gt;Like the others have said, there isn't a way to automatically trigger a python script whenever certain edit criteria is met. However, with the release of power automate for arcgis there could be potential for some kind of automated trigger event to execute the script. I would need to dig in deeper to find if there is such a thing.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jul 2025 14:45:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/trigger-python-script-after-agol-hosted-feature/m-p/1634392#M11513</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2025-07-19T14:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Python Script After AGOL Hosted Feature Layer is Edited</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/trigger-python-script-after-agol-hosted-feature/m-p/1634520#M11516</link>
      <description>&lt;P&gt;It would be a nice option alright, and like yourself I have some Notebooks scheduled to run every 15 minutes or every hour. As&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/115587"&gt;@MobiusSnake&lt;/a&gt;&amp;nbsp;mentions, I have time filters and data checks so I'm only accessing those records that have been edited within the last 15 mins or an hour rather than the entire dataset.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/22623"&gt;@RPGIS&lt;/a&gt;&amp;nbsp;mentions Power Automate, and you can also use Make to create and maintain webhooks. FME Flow (server) is also excellent for these webhooks for monitoring changes and triggering updates when an edit is made - although FME comes with a cost.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would seem that Webhooks via a third-party software is he only option outside of scheduled Notebooks.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 12:27:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/trigger-python-script-after-agol-hosted-feature/m-p/1634520#M11516</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2025-07-21T12:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Python Script After AGOL Hosted Feature Layer is Edited</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/trigger-python-script-after-agol-hosted-feature/m-p/1634551#M11517</link>
      <description>&lt;P&gt;Also, could you please explain in further detail what exactly it is you are trying to accomplish. A lot of times people ask questions regarding a specific workflow but, when they go into further detail, they actually find that there is another route that can be taken which would get them closer to their desired result.&lt;/P&gt;&lt;P&gt;What I mean is if you are trying to, lets say update a table or several tables whenever an edit is made, there are workflows that use the arcade language that will automatically update those tables whenever an edit is made. If you are trying to run a script to update a report of sorts or send some kind of notification, then the python script or using Power Automate would make the most sense in that case.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 14:05:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/trigger-python-script-after-agol-hosted-feature/m-p/1634551#M11517</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2025-07-21T14:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Python Script After AGOL Hosted Feature Layer is Edited</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/trigger-python-script-after-agol-hosted-feature/m-p/1634726#M11519</link>
      <description>&lt;P&gt;Sure, I'll explain further. I have a user that updates a hosted feature layer periodically. She'll add a feature or edit an existing one. After she edits, she needs to export the hosted feature layer to shapefile format for use in her Tibco Spotfire project. It's a very simple script, call the hosted feature layer, use Make Feature Layer to turn off unnecessary fields, then Export Features to shapefile. There seems to be limited connectivity between AGOL and Spotfire.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 19:13:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/trigger-python-script-after-agol-hosted-feature/m-p/1634726#M11519</guid>
      <dc:creator>B_NewGE</dc:creator>
      <dc:date>2025-07-21T19:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Python Script After AGOL Hosted Feature Layer is Edited</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/trigger-python-script-after-agol-hosted-feature/m-p/1634728#M11520</link>
      <description>&lt;P&gt;This piques my interest, we are an AWS shop. My scripts run on a schedule on an EC2 instance. Currently, the script is very ArcPy based (Call hosted feature layer &amp;gt; Make Feature Layer &amp;gt; Export Features to Shapefile) but perhaps there is a way to circumvent ArcPy altogether.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 19:17:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/trigger-python-script-after-agol-hosted-feature/m-p/1634728#M11520</guid>
      <dc:creator>B_NewGE</dc:creator>
      <dc:date>2025-07-21T19:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Python Script After AGOL Hosted Feature Layer is Edited</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/trigger-python-script-after-agol-hosted-feature/m-p/1634805#M11521</link>
      <description>&lt;P&gt;Does this Spotfire Project have the ability to read APIs or is it strictly upload a dataset. Most people don't realize that feature services are technically called rest APIs which can be shared to different applications that, if they can be natively read, would basically work in that manner.&lt;/P&gt;&lt;P&gt;Another thing is have you thought about creating a data view that has export capabilities so that she can download it whenever she needs to rather than running something constant. If you enable the feature service to allow others to export and then create a view of the data, then she can export it whenever needed. It can also be set to have limited sharing capabilities also.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 22:43:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/trigger-python-script-after-agol-hosted-feature/m-p/1634805#M11521</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2025-07-21T22:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Python Script After AGOL Hosted Feature Layer is Edited</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/trigger-python-script-after-agol-hosted-feature/m-p/1683037#M11847</link>
      <description>&lt;P&gt;Hey, I ran into this when looking at ways to update feature layers when another feature layer is edited. I have two AGOL feature layers A and B, and whenever A is updated, I also want to update a corresponding record in feature layer B, which have a primary key/foreign key relationship.&lt;BR /&gt;&lt;BR /&gt;Your comment seems to suggest this is possible using Arcade, but I cannot find where to start looking to make this possible. Can I do it fully in AGOL, or do I need to make an ArcGIS Pro map with these layers and put an attribute rule on those? I'd love to hear how to do this, as I cannot find an explanation of these Arcade workflows.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2026 14:20:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/trigger-python-script-after-agol-hosted-feature/m-p/1683037#M11847</guid>
      <dc:creator>MichielHorikx</dc:creator>
      <dc:date>2026-02-09T14:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Python Script After AGOL Hosted Feature Layer is Edited</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/trigger-python-script-after-agol-hosted-feature/m-p/1683044#M11848</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/886507"&gt;@MichielHorikx&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;There are plenty of solutions out there that can accomplish this. For starters, here is a link that shows the basic structure for editing other features.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/advanced-gdb-attribute-rules-editing-external-features-with-attribute-rules" target="_blank" rel="noopener"&gt;Advanced attribute editing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In addition to that, depending on your workflow, here are some ways to go about.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Attribute rule: you can setup a rule, if it is a feature in either sde or gdb&lt;/LI&gt;&lt;LI&gt;If the layer is hosted:&lt;OL&gt;&lt;LI&gt;Use the field maps form to apply the same logic but used strictly as a form calculation&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;If the edits are infrequent:&lt;OL&gt;&lt;LI&gt;You can use a simple field calculation and apply the same calculation but it is dependent on if the layer is either in an sde or gdb&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Mon, 09 Feb 2026 14:42:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/trigger-python-script-after-agol-hosted-feature/m-p/1683044#M11848</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2026-02-09T14:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Python Script After AGOL Hosted Feature Layer is Edited</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/trigger-python-script-after-agol-hosted-feature/m-p/1683081#M11849</link>
      <description>&lt;P&gt;Thanks for the information, that is a clear example of how to use attribute rules. Do attribute rules also work when using online Feature Layers in ArcGIS Pro?&lt;BR /&gt;&lt;BR /&gt;My specific situation is that there is a layer A with a number of objects. Using popups in layer A, you can fill out a form (Survey123) that copies some data from this specific object, and this form creates a new record in the form layer B. Now, when this new record is created, I would like to change a 'Status' field in layer A of the corresponding object. I tried looking up 'field maps' and 'form calculation' but it's really hard to find the correct resources.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2026 16:20:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/trigger-python-script-after-agol-hosted-feature/m-p/1683081#M11849</guid>
      <dc:creator>MichielHorikx</dc:creator>
      <dc:date>2026-02-09T16:20:17Z</dc:date>
    </item>
  </channel>
</rss>

