HOW TO

Configure the email notification tool for Citizen Problem Reporter

Last Published: June 2, 2022

Summary

The Citizen Problem Reporter solution comes with a Python toolbox called "Service Functions" that contains five tools (listed below). These tools enable users to extend the solution and automate the following processes:

  • Define Connection Settings
  • Enrich reports
  • Generate (report) IDs
  • Moderate reports
  • Send email notifications

To use any of the tools, it is necessary to define the connection to the portal where the solution is hosted.

2021-12-04_1-23-27.jpg

Procedure

To configure the solution with the send email notification tool, follow the steps below:
  1. Open ArcGIS Pro.
  2. From the Catalog pane, right-click Toolboxes > Add Toolbox, as shown in the image below
  3. Browse to the following URL, download ServiceSupport.zip, and add the ServiceSupport.pyt toolbox extracted from the zip file.
http://links.esri.com/download/servicefunctions/
25503a.png
  1. Expand the ServiceSupport.pyt toolbox, and double-click Define Connection Settings, as shown in the next image.
25503b.png
  1. In the Define Connection Settings dialog, under Add ArcGIS Online organization or ArcGIS Enterprise portal URL, add the organization URL.
  2. Add your Username and Password, and click Run.
  3. Under the ServiceSupport.pyt toolbox, double-click the Send Emails tool, as shown in the next image.
25503e.png
  1. In the Send Emails dialog, shown in the next image, under Layer, browse for the Citizen Problems layer.
22503f.png
  1. Configure other Email Settings as needed:
    • Under General Email Settings add the SMTP Server
    • Add the SMTP Username and SMTP Password (This is not required if authenticating through a port)
    • Fill out From Address and Reply Address
    • Enable Use TLS
  2. Click Run.
  • After configuring the email notification tool, email notification is not automatically sent once a report is submitted through the app. Rather, you must run the servicefunctions.py script.
  • This can be automated by running the script using Windows Task Scheduler.

Sometimes, running the script may return errors, similar to the following, and as shown in the image below, however the script successfully triggers email notifications:

ERROR: Failed to process service <service url>
You do not have permissions to access this resource or perform this operation.
(Error Code 403)
ERROR: Failed to process service

Article ID: 000025503

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options