<?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: Auto-running a python script after attaching a document in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/auto-running-a-python-script-after-attaching-a/m-p/1503917#M71036</link>
    <description>&lt;P&gt;The only things that run on database events in Pro are Attribute Rules. You could try implementing the scraper there, but because the JavaScript version (arcade) is limited, you'd probably be better off putting in a flag field that is set by default to something like "unprocessed" then setting up a validation rule that notifies the user that they have unprocessed documents and prompts them to run a python tool that checks for "unprocessed" records and does the processing.&lt;/P&gt;&lt;P&gt;You can't trigger the script on event, but you can make it harder for people to forget to run it or make it easy for a batch script to traverse a ton of projects looking for that "unprocessed" flag and do the processing.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jul 2024 23:15:15 GMT</pubDate>
    <dc:creator>HaydenWelch</dc:creator>
    <dc:date>2024-07-10T23:15:15Z</dc:date>
    <item>
      <title>Auto-running a python script after attaching a document</title>
      <link>https://community.esri.com/t5/python-questions/auto-running-a-python-script-after-attaching-a/m-p/1503028#M71015</link>
      <description>&lt;P&gt;Hi all, I have implemented step 1, but could use some help with steps 2 (event-based running of a script) and 3 (the logic to extract the text). Thanks&lt;EM&gt;!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Shane_EU_0-1720537014063.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/109195i3EDA22BEBF9CCB8F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Shane_EU_0-1720537014063.png" alt="Shane_EU_0-1720537014063.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 14:59:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/auto-running-a-python-script-after-attaching-a/m-p/1503028#M71015</guid>
      <dc:creator>Shane_EU</dc:creator>
      <dc:date>2024-07-09T14:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-running a python script after attaching a document</title>
      <link>https://community.esri.com/t5/python-questions/auto-running-a-python-script-after-attaching-a/m-p/1503091#M71016</link>
      <description>&lt;P&gt;I don't think you can execute direct event-driven scripts like you are wanting. Maybe the use&amp;nbsp; of database triggers and scheduled tasks.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 16:16:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/auto-running-a-python-script-after-attaching-a/m-p/1503091#M71016</guid>
      <dc:creator>TonyAlmeida</dc:creator>
      <dc:date>2024-07-09T16:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-running a python script after attaching a document</title>
      <link>https://community.esri.com/t5/python-questions/auto-running-a-python-script-after-attaching-a/m-p/1503917#M71036</link>
      <description>&lt;P&gt;The only things that run on database events in Pro are Attribute Rules. You could try implementing the scraper there, but because the JavaScript version (arcade) is limited, you'd probably be better off putting in a flag field that is set by default to something like "unprocessed" then setting up a validation rule that notifies the user that they have unprocessed documents and prompts them to run a python tool that checks for "unprocessed" records and does the processing.&lt;/P&gt;&lt;P&gt;You can't trigger the script on event, but you can make it harder for people to forget to run it or make it easy for a batch script to traverse a ton of projects looking for that "unprocessed" flag and do the processing.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 23:15:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/auto-running-a-python-script-after-attaching-a/m-p/1503917#M71036</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2024-07-10T23:15:15Z</dc:date>
    </item>
  </channel>
</rss>

