Skip To Content

Send Email

The Send Email step sends an email notification to one or more recipients when the step is run. This step type can be used to notify people when a step or job has been completed or when a step didn't complete successfully.

Note:

You must configure email settings for ArcGIS Workflow Manager before the Send Email step can be used to send email notifications.

Step configuration

Complete these steps to configure the Send Email step:

  1. Create or edit a workflow diagram to access the Step Library panel.
  2. Drag Send Email from the Step Library to a connection arrow of a step on the workflow canvas.

    The Step Details panel appears.

  3. Provide a name for the step in the Step Name text box.
  4. Type one or more email addresses separated by a semicolon in the To text box.
  5. Type a subject for the email notification in the Subject text box.

    You can also use ArcGIS Arcade expressions to provide a dynamic value for the subject. For example, jobName($job)+' is ready'.

  6. Type the message text for the email notification in the Body text box.

    You can also use the following example to provide a dynamic value for the body using ArcGIS Arcade expressions:

    '<b>'+jobName($job)+'</b>, created by <b>'+jobCreator($job)+'</b>, was closed on <b>'+Text(Date(jobEndDate($job)), 'dddd, MMMM D, Y')+'</b>.'
    Note:

    You must enable the HTML Notification option to use HTML tags in the email body field.

  7. Optionally, if your workflow diagram includes the Add Attachment step, you can choose to include job attachments in the email notification using the following options under Include Attachments:
    • None—Don't include job attachments in the email notification.
    • All—Include all job attachment folders in the email notification.
    • By Folder—Type a comma separated list of folder names in the By Folder text box to specify the job attachment folders to include in the email notification.
    Note:

    If a job contains multiple attachments, they are sent as a single ZIP file and the Add Attachment step's folder structure is maintained.

  8. Click the Options tab.
  9. Configure Step Options as necessary.
    • Manual—Run the step manually.
      • Optional—Allow the step to be finished without being run.
    • Automatic—Run the step as soon as it becomes active.
    • Run on a Schedule—Run the step according to a schedule you set.

      Learn more about scheduling options

  10. Optionally, provide help text for the step in the Step Help text box.
  11. Optionally, click the Style tab to change the shape and color of the step.
  12. Optionally, click the About tab and provide a description for the step in the Step Description text box.
    Note:

    The About tab also contains the step's ID that can be used with dynamic job properties to obtain a step's output.

Return codes

When the step finishes running, it sends a return code to indicate the result of the step. The return code is evaluated, and the workflow follows all paths that match the step's return value. The following table lists the step's return codes:

Return codeDescription

Failure

The step failed to complete successfully.

Success

The step completed successfully.

Step output

When the step finishes running, its output is stored and can be used to determine the path the workflow follows or be used as inputs for other steps throughout the workflow. The following table lists the step's stored outputs:

OutputDescription

F000001

The step failed to complete successfully.

S000001

The step completed successfully.

Related topics