<?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>idea ArcGIS Online Hosted Feature Service Notification on new record/feature added in ArcGIS Online Ideas</title>
    <link>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idi-p/939143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;Add the ability to trigger a notification (to a specified e-mail address) when a new record is created in a hosted feature service though ArcGIS Online. This would be most beneficial when leveraging the GeoForm application for collecting information from the public. A bonus ability would be to initiate notification to different e-mails depending on a specific attribute. (For example, the GeoForm has a drop down menu (generated from a domain) for "Problem type", with the options "Pothole",&amp;nbsp; "Tree Issue", etc. If the "Pothole" problem is chosen, then the email notification would go to the street department, if "Tree Issue" is chosen&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; then the notification would go to the Urban Forester).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Feb 2015 17:26:57 GMT</pubDate>
    <dc:creator>KyleJohnson</dc:creator>
    <dc:date>2015-02-11T17:26:57Z</dc:date>
    <item>
      <title>ArcGIS Online Hosted Feature Service Notification on new record/feature added</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idi-p/939143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;Add the ability to trigger a notification (to a specified e-mail address) when a new record is created in a hosted feature service though ArcGIS Online. This would be most beneficial when leveraging the GeoForm application for collecting information from the public. A bonus ability would be to initiate notification to different e-mails depending on a specific attribute. (For example, the GeoForm has a drop down menu (generated from a domain) for "Problem type", with the options "Pothole",&amp;nbsp; "Tree Issue", etc. If the "Pothole" problem is chosen, then the email notification would go to the street department, if "Tree Issue" is chosen&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; then the notification would go to the Urban Forester).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 17:26:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idi-p/939143</guid>
      <dc:creator>KyleJohnson</dc:creator>
      <dc:date>2015-02-11T17:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Hosted Feature Service Notification on new record/feature added</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939144#M2643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Yes! Because what's the point of geoform from anonymous users, when you're not aware of the new entry?&lt;BR /&gt;&amp;nbsp;

&lt;!-- content transformation source ID: 00aE000000HhW8Q --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 13:24:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939144#M2643</guid>
      <dc:creator>AngelinaSavchuk1</dc:creator>
      <dc:date>2016-04-19T13:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Hosted Feature Service Notification on new record/feature added</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939145#M2644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have the GeoEvent Extension for ArcGIS Server, you can achieve this.&amp;nbsp; The steps are outlined in the help for the Citizen Problem Reporter application:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://solutions.arcgis.com/local-government/help/citizen-problem-reporter/get-started/real-time-problem-notifications/" title="http://solutions.arcgis.com/local-government/help/citizen-problem-reporter/get-started/real-time-problem-notifications/"&gt;Real-time Problem Notifications - Citizen Problem Reporter | ArcGIS for Local Government&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 14:34:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939145#M2644</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2016-06-17T14:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Hosted Feature Service Notification on new record/feature added</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939146#M2645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For those without the ability to access an Arc Server, this would be SUPER helpful!&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 11:36:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939146#M2645</guid>
      <dc:creator>MelanieWilliams1</dc:creator>
      <dc:date>2016-07-07T11:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Hosted Feature Service Notification on new record/feature added</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939147#M2646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree there is a need for this functionality without having to purchase the Geoevent extension. In my office we have accomplished this goal with a python script and a scheduled windows task. That being said, I had a conversation with someone at Esri and they acknowledged the need for this to be a part of the core functionality. One Idea I have, is to utilize Sever Object Interceptors. If I understand the way Portal/ArcGIS Online works, you could in theory create a SOI to live on any service on the GIS server behind the portal, and set it up so that the SOI is configurable where the user can input a list of emails, define what the SOI is listening for, and what message should be sent. Me team and I hope to begin R&amp;amp;Ding this soon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 18:01:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939147#M2646</guid>
      <dc:creator>deleted-user-8KkqhMYcTNGx</dc:creator>
      <dc:date>2017-10-24T18:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Hosted Feature Service Notification on new record/feature added</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939148#M2647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Would it be possible to know what functions you used in Python to write your script? We would love to be able to have an email notification as well after new entries are added.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance any help will be greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2018 18:02:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939148#M2647</guid>
      <dc:creator>ZecsQuébec</dc:creator>
      <dc:date>2018-05-01T18:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Hosted Feature Service Notification on new record/feature added</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939149#M2648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is how we do it:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;# Import modules&lt;BR /&gt;import arcpy, time, sys, string, os, traceback, datetime, shutil, httplib, urllib, json, getpass, arcserver&lt;BR /&gt;import xml.dom.minidom as DOM&lt;BR /&gt;import xml.etree.ElementTree as ET&lt;BR /&gt;import smtplib&lt;BR /&gt;from email.MIMEText import MIMEText&lt;/P&gt;&lt;P&gt;# Setting the arc py environment&lt;BR /&gt;ENV= arcpy.env&lt;BR /&gt;# End Arcpy Environment&lt;BR /&gt; &lt;BR /&gt;# Setting the overwrite of existing features&lt;BR /&gt;ENV.overwriteOutput = True&lt;BR /&gt;# End Overwrite Setting&lt;/P&gt;&lt;P&gt;# Variables&lt;BR /&gt;DateTime = datetime.datetime.now()&lt;BR /&gt;PreviousDateTime = readTextFile(txt_file, DateTime)&lt;BR /&gt;writelog(logFile, str(PreviousDateTime) + "\n")&lt;BR /&gt;D1 = "( LAST_EDITED_DATE &amp;gt;= '" + str(PreviousDateTime) + "' )"&lt;BR /&gt;FeatureClass = "\\feaureclasspath\\FeatureClass"&lt;BR /&gt;FeatureClassLayer = "FeatureClassLayer"&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;FeatureClass&lt;/SPAN&gt;Fields = ["Name", "Email", "Address", "PhoneNumber"]&lt;BR /&gt;# End Variable Section&lt;/P&gt;&lt;P&gt;try:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;FeatureClassLayer = arcpy.MakeFeatureLayer_management(FeatureClass, FeatureClassLayer )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="background-color: #f6f6f6;"&gt;FeatureClassLayer&lt;SPAN&gt;&amp;nbsp; =&amp;nbsp;arcpy.SelectLayerByAttribute_management(FeatureClassLayer&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;, "NEW_SELECTION", D1)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;FeatureClassLayerCount&lt;SPAN&gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;arcpy.GetCount_management(FeatureClassLayer)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if str(FeatureClassLayerCount) != str(0):&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;cursor = arcpy.da.SearchCursor(FeatureClassLayer, FeatureClass&lt;SPAN style="background-color: #f6f6f6;"&gt;Fields&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for row in cursor:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Name = GetValue(row, 0)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Email = GetValue(row, 1)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Address = GetValue(row, 2)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PhoneNumber = GetValue(row, 3)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if EmailMessage == "":&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;EmailMessage += "The following drainage complaints have been made: " + "\n"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EmailMessage += "\n"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;EmailMessage += "Name: " + Name + "\n"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;EmailMessage += "Date: " + Date + "\n"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;EmailMessage += "Email: " + Email + "\n"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;EmailMessage += "Address: " + Address + "\n"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;EmailMessage += "Phone Number: " + PhoneNumber + "\n"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;del cursor&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;del row&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;writelog(logFile, "Process: Send Email" + "\n")&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;# Send Email&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;# This is the email notification piece [%]&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#email error notification&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;smtpserver = 'email server'&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AUTHREQUIRED = 0 # if you need to use SMTP AUTH set to 1&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;smtpuser = '' # for SMTP AUTH, set SMTP username here&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;smtppass = '' # for SMTP AUTH, set SMTP password here&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;RECIPIENTS = [&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:'email@email.com"&gt;'email@email.com&lt;/A&gt;&lt;SPAN&gt;', &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:'email1@email1.com"&gt;'email1@email1.com&lt;/A&gt;&lt;SPAN&gt;']&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SENDER = &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:'email2@email2.com"&gt;'email2@email2.com&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#msg = arcpy.GetMessages()***I think I need to look at the message variable&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#msg = arcpy.GetMessage(0)# Brian Corrected this it is arcpy.GetMessage()&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#msg += arcpy.GetMessage(2)# Brian Corrected this it is arcpy.GetMessage()&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#msg += arcpy.GetMessage(3)# Brian Corrected this it is arcpy.GetMessage()&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;msg = MIMEText(EmailMessage) #***i pointed this mime thing at the message &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;msg['Subject'] = 'Edited Features briefing'&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;# Following headers are useful to show the email correctly&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;# in your recipient's email box, and to avoid being marked&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;# as spam. They are NOT essential to the sendmail call later&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;msg['From'] = "ArcGIS"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;msg['Reply-to'] = "Name "&lt;BR /&gt;&lt;SPAN&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;msg['To'] = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:Email@Email.com"&gt;Email@Email.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;except:&lt;BR /&gt;&amp;nbsp;print("Error:")&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The concept is the same for dealing with feature services. We currently use a library from github called &lt;A href="https://github.com/Esri/portalpy"&gt;Portalpy&lt;/A&gt;&amp;nbsp;in order to interact with the feature services. We are in the process of rewriting the process with the ArcGIS Python API. Please let me know if that helps or if you have any other questions. Thank you for everything and have a delightful day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe Guzi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 01:13:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939149#M2648</guid>
      <dc:creator>deleted-user-8KkqhMYcTNGx</dc:creator>
      <dc:date>2018-05-02T01:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Hosted Feature Service Notification on new record/feature added</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939150#M2649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow thank you so much, it's very appreciated!! I won't be able to look at it in more details for a little while but I have any questions I'll let you know.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Chrystel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 12:47:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939150#M2649</guid>
      <dc:creator>ZecsQuébec</dc:creator>
      <dc:date>2018-05-03T12:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Hosted Feature Service Notification on new record/feature added</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939151#M2650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be best if it was a supported webhook, then you could easily set up different notification emails by Problem Type with Microsoft Flow, Integromat, or another. We currently also use a scheduled python script, but webhooks would be much easier and allow more functionality.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 18:06:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939151#M2650</guid>
      <dc:creator>ChelseaRozek</dc:creator>
      <dc:date>2018-08-07T18:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Hosted Feature Service Notification on new record/feature added</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939152#M2651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FYI: Webhook is a work in progress in online feature service. Most likely it will be available later this year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Khaled Hassen&lt;/P&gt;&lt;P&gt;Online Feature Service Dev Lead&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 14:28:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939152#M2651</guid>
      <dc:creator>KhaledHassen</dc:creator>
      <dc:date>2019-04-09T14:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Hosted Feature Service Notification on new record/feature added</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939153#M2652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone interested, here's the code I use to check for updates, send notifications, and update the feature. It uses the ArcGIS API for python (Python 3). Just turn on a scheduled task to run it how often you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It currently only sends internal notification, but if you understand what's going on, it would be easy to apply an external notification as well, so when a problem is marked as completed the email is then sent to the reportee with the email that they entered and then the email status is updated to sent or whatever you decide to use. Or, if there's no email you could change the emailstatus to "Unable to Send" or something like that. Your query would look like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c5c8c6;"&gt;queryString&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #676867;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"status = 'Completed' AND emailstatus = 'WHATEVER_VALUE_YOU_PICKED_FOR_DEFAULT' "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: Depending on your version of "Pandas", you may have to use len(query_result1) instead of len(query_result1.features)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #c5c8c6; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #9a9b99;"&gt;#!/usr/bin/env python3&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #9aa83a;"&gt;"""&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9aa83a;"&gt;Python Script that will be used to notify staff of new additions&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9aa83a;"&gt;to the Citizen Problems feature in ArcGIS Online using the ArcGIS API for Python.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #9aa83a;"&gt;Notification is sent to the appropriate person when a new feature is found and the&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9aa83a;"&gt;feature is updated to Received&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9aa83a;"&gt;"""&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9872a2;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; arcgis.gis &lt;/SPAN&gt;&lt;SPAN style="color: #9872a2;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;GIS&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9872a2;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; arcgis.features &lt;/SPAN&gt;&lt;SPAN style="color: #9872a2;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; FeatureLayer&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9872a2;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; smtplib&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9872a2;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; datetime&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="color: #9872a2;"&gt;def&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ce6700;"&gt;sendInternalNotification&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #6089b4;"&gt;category&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6089b4;"&gt;problemType&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6089b4;"&gt;fullName&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6089b4;"&gt;submittedOn&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6089b4;"&gt;details&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;switcher &lt;/SPAN&gt;&lt;SPAN style="color: #676867;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"Animal"&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:EMAIL@DOMAIN.COM"&gt;EMAIL@DOMAIN.COM&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"Blight"&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"&lt;SPAN style="background-color: #1e1e1e;"&gt;EMAIL&lt;/SPAN&gt;&lt;SPAN style="background-color: #1e1e1e;"&gt;@DOMAIN.COM&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"Health"&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"&lt;SPAN style="background-color: #1e1e1e;"&gt;EMAIL&lt;/SPAN&gt;&lt;SPAN style="background-color: #1e1e1e;"&gt;@DOMAIN.COM&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"Park/Tree"&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"&lt;SPAN style="background-color: #1e1e1e;"&gt;EMAIL&lt;/SPAN&gt;&lt;SPAN style="background-color: #1e1e1e;"&gt;@DOMAIN.COM&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"Road"&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"&lt;SPAN style="background-color: #1e1e1e;"&gt;EMAIL&lt;/SPAN&gt;&lt;SPAN style="background-color: #1e1e1e;"&gt;@DOMAIN.COM&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"Snow/Ice"&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"&lt;SPAN style="background-color: #1e1e1e;"&gt;EMAIL&lt;/SPAN&gt;&lt;SPAN style="background-color: #1e1e1e;"&gt;@DOMAIN.COM&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"Trash"&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"&lt;SPAN style="background-color: #1e1e1e;"&gt;EMAIL&lt;/SPAN&gt;&lt;SPAN style="background-color: #1e1e1e;"&gt;@DOMAIN.COM&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"Utility"&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"&lt;SPAN style="background-color: #1e1e1e;"&gt;EMAIL&lt;/SPAN&gt;&lt;SPAN style="background-color: #1e1e1e;"&gt;@DOMAIN.COM&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"Land Use"&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"&lt;SPAN style="background-color: #1e1e1e;"&gt;EMAIL&lt;/SPAN&gt;&lt;SPAN style="background-color: #1e1e1e;"&gt;@DOMAIN.COM&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;fromaddr &lt;/SPAN&gt;&lt;SPAN style="color: #676867;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:donotreply@DOMAIN.COM"&gt;donotreply@DOMAIN.COM&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;toaddr &lt;/SPAN&gt;&lt;SPAN style="color: #676867;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; switcher.get(category, &lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:DEFAULTEMAIL@DOMAIN.COM"&gt;DEFAULTEMAIL@DOMAIN.COM&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #9a9b99;"&gt;#second argument is in case a category is not in the switcher&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;sep &lt;/SPAN&gt;&lt;SPAN style="color: #676867;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;\n&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;msg &lt;/SPAN&gt;&lt;SPAN style="color: #676867;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9872a2;"&gt;f&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"From: &lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;fromaddr&lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;}{&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;sep&lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9872a2;"&gt;f&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"To: &lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;toaddr&lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;}{&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;sep&lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9aa83a;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;f"Subject: New&amp;nbsp;&lt;SPAN style="color: #8080ff;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;category&lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;} -&amp;nbsp;{&lt;SPAN style="color: #c5c8c6;"&gt;problemType&lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9872a2;"&gt;f&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;sep&lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9872a2;"&gt;f&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"A new complaint has been made: &lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;sep&lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9872a2;"&gt;f&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"Category: &lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;category&lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;}{&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;sep&lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9872a2;"&gt;f&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"Type of Problem: &lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;problemType&lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;}{&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;sep&lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9872a2;"&gt;f&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"Name: &lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;fullName&lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;}{&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;sep&lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9872a2;"&gt;f&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"Date Submitted: &lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;datetime.datetime.fromtimestamp(&lt;/SPAN&gt;&lt;SPAN style="color: #c7444a;"&gt;int&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;(submittedOn)&lt;/SPAN&gt;&lt;SPAN style="color: #676867;"&gt;//&lt;/SPAN&gt;&lt;SPAN style="color: #6089b4;"&gt;1000&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;}{&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;sep&lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9872a2;"&gt;f&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"Details: &lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;details&lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;}{&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;sep&lt;/SPAN&gt;&lt;SPAN style="color: #8080ff;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;server &lt;/SPAN&gt;&lt;SPAN style="color: #676867;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; smtplib.SMTP(&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;'YOUR.EMAIL.SERVER'&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;server.set_debuglevel(&lt;/SPAN&gt;&lt;SPAN style="color: #6089b4;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;server.sendmail(fromaddr, toaddr, msg)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;server.quit()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="color: #9872a2;"&gt;def&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ce6700;"&gt;main&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;():&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9a9b99;"&gt;#Login and get the Feature Layer&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;gis &lt;/SPAN&gt;&lt;SPAN style="color: #676867;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; GIS(&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.esri.com/YOUR_ORGANIZATION.maps.arcgis.com" rel="nofollow" target="_blank"&gt;https://YOUR_ORGANIZATION.maps.arcgis.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"USERNAME"&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"PASSWORD"&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;layer &lt;/SPAN&gt;&lt;SPAN style="color: #676867;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;FeatureLayer(&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.esri.com/services1.arcgis.com/YOUR_ID_FOR_YOUR_SERVICES/ArcGIS/rest/services/CitizenProblems/FeatureServer/0" rel="nofollow" target="_blank"&gt;https://services1.arcgis.com/YOUR_ID_FOR_YOUR_SERVICES/ArcGIS/rest/services/CitizenProblems/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6089b4;"&gt;gis&lt;/SPAN&gt;&lt;SPAN style="color: #676867;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;gis)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9a9b99;"&gt;#Create query string &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;queryString &lt;/SPAN&gt;&lt;SPAN style="color: #676867;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"status = 'Submitted'"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9a9b99;"&gt;#Query layer and send mail&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;query_result1 &lt;/SPAN&gt;&lt;SPAN style="color: #676867;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; layer.query(&lt;/SPAN&gt;&lt;SPAN style="color: #6089b4;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="color: #676867;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;queryString)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9872a2;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9872a2;"&gt;len&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;(query_result1.features) &lt;/SPAN&gt;&lt;SPAN style="color: #676867;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #6089b4;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;featureUpdates &lt;/SPAN&gt;&lt;SPAN style="color: #676867;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; []&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9872a2;"&gt;for&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; feature &lt;/SPAN&gt;&lt;SPAN style="color: #676867;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; query_result1.features:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sendInternalNotification(feature.attributes[&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"category"&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;], feature.attributes[&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"probtype"&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;], feature.attributes[&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"pocfullname"&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;], &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;feature.attributes[&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"CreationDate"&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;], feature.attributes[&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"details"&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9a9b99;"&gt;#Update feature status to Received&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;feature.attributes[&lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"status"&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;] &lt;/SPAN&gt;&lt;SPAN style="color: #676867;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;'Received'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;featureUpdates.append(feature)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;layer.edit_features(&lt;/SPAN&gt;&lt;SPAN style="color: #6089b4;"&gt;updates&lt;/SPAN&gt;&lt;SPAN style="color: #676867;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;featureUpdates)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="color: #9872a2;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #c7444a;"&gt;__name__&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #676867;"&gt;==&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9aa83a;"&gt;"__main__"&lt;/SPAN&gt;&lt;SPAN style="color: #c5c8c6;"&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c5c8c6;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;main()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2019 17:22:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939153#M2652</guid>
      <dc:creator>MatthewMuehlhauser</dc:creator>
      <dc:date>2019-05-15T17:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Hosted Feature Service Notification on new record/feature added</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939154#M2653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume from the "scheduled task" part that this is run from ArcGIS Pro or ArcMap. OP is asking about ArcGIS Online, (presumably alone as nothing else mentioned). This is also something I am looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jul 2019 22:19:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939154#M2653</guid>
      <dc:creator>deleted-user-hAQrEDjquYo6</dc:creator>
      <dc:date>2019-07-15T22:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Hosted Feature Service Notification on new record/feature added</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939155#M2654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FYI we are working hard in online to get webhooks added to online feature service. We are trying to avoid having our clients to keep/making polling requests to our server looking for updates and the solution will not scale eventually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Online target online Dec. online release. If we will able to release sooner, we will let you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Khaled&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jul 2019 22:40:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939155#M2654</guid>
      <dc:creator>KhaledHassen</dc:creator>
      <dc:date>2019-07-15T22:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Hosted Feature Service Notification on new record/feature added</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939156#M2655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These python scripts are run as scheduled tasks from your computer with &lt;A href="https://docs.microsoft.com/en-us/windows/win32/taskschd/about-the-task-scheduler"&gt;Windows Task Scheduler&lt;/A&gt;. Here's an (old) ESRI article about the process:&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/product/analytics/scheduling-a-python-script-or-model-to-run-at-a-prescribed-time/"&gt;https://www.esri.com/arcgis-blog/products/product/analytics/scheduling-a-python-script-or-model-to-run-at-a-prescribed-time/&lt;/A&gt;. These python scripts can access your hosted feature layers in ArcGIS Online to check for new features.&amp;nbsp;It would be cool if setting notifications was completely built in to ArcGIS Online. You'll sorta get there once you can host and schedule python notebooks to run as items in AGO.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edit:&lt;/STRONG&gt; wow, what a coincidence. They just posted an updated version of that blog article:&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-pro/analytics/schedule-a-python-script-or-model-to-run-at-a-prescribed-time-2019-update/"&gt;https://www.esri.com/arcgis-blog/products/arcgis-pro/analytics/schedule-a-python-script-or-model-to-run-at-a-prescribed-time-2019-update/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2019 14:50:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939156#M2655</guid>
      <dc:creator>ChelseaRozek</dc:creator>
      <dc:date>2019-07-16T14:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Hosted Feature Service Notification on new record/feature added</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939157#M2656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ESRI provides&amp;nbsp;this python script and I got it to work.&amp;nbsp;&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/groups/survey123/blog/2018/01/22/a-simple-e-mail-notification-system-for-survey123-for-arcgis-v2"&gt;https://community.esri.com/groups/survey123/blog/2018/01/22/a-simple-e-mail-notification-system-for-survey123-for-arcgis-v2&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2019 14:44:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939157#M2656</guid>
      <dc:creator>JeffLegato1</dc:creator>
      <dc:date>2019-08-06T14:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Hosted Feature Service Notification on new record/feature added</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939158#M2657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Khaled,&lt;/P&gt;&lt;P&gt;you wrote that there is an expected December 2019 release for a webhooks online feature service for AGOL.&amp;nbsp; I am really looking forward to that and was wondering if there has been any change in expected release date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;Brian Hall&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2019 14:09:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939158#M2657</guid>
      <dc:creator>BrianHall1</dc:creator>
      <dc:date>2019-11-21T14:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Hosted Feature Service Notification on new record/feature added</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939159#M2658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes the plan was to release it on December. Development is done but we still working on testing/scaling the solution. Also finishing up the docs.&lt;/P&gt;&lt;P&gt;The plan is to release it on March on the latest. Will update if we can make it before March.&lt;/P&gt;&lt;P&gt;Sorry for the delay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Khaled&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2019 15:12:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939159#M2658</guid>
      <dc:creator>KhaledHassen</dc:creator>
      <dc:date>2019-11-21T15:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Hosted Feature Service Notification on new record/feature added</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939160#M2659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Khaled,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your reply.  I am looking forward to that important feature and the project can wait until then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2019 16:50:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939160#M2659</guid>
      <dc:creator>BrianHall1</dc:creator>
      <dc:date>2019-11-21T16:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Hosted Feature Service Notification on new record/feature added</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939161#M2660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khaled,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if there's been any update on this topic- if we can expect it soon or not?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2020 11:40:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939161#M2660</guid>
      <dc:creator>Savannah</dc:creator>
      <dc:date>2020-03-13T11:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Hosted Feature Service Notification on new record/feature added</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939162#M2661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Savannah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes. We are working on releasing it in March or June release. Pl. check esri dev summit recording this year. I have a session about online feature service best practices. I have demoed the use of webhooks in online feature service. The dev summit recording will be available shortly from esri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Khaled&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2020 17:24:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/arcgis-online-hosted-feature-service-notification/idc-p/939162#M2661</guid>
      <dc:creator>KhaledHassen</dc:creator>
      <dc:date>2020-03-13T17:24:38Z</dc:date>
    </item>
  </channel>
</rss>

