可创建电子邮件模板以与作业活动一起用于在执行特定作业活动时发送电子邮件通知。
创建电子邮件模板
要创建电子邮件模板,执行以下操作:
- Access the Workflow Manager web app.
- Click the Design tab.
The Design page appears.
注:
The Design tab won't appear if you don’t have sufficient privileges.
- Click the Templates button .
注:
The Templates button won't appear if you don’t have sufficient privileges.
- Click the Email Templates tab.
The Email Templates panel appears.
- 在电子邮件模板面板中单击新建。
- 在模板名称文本框中提供电子邮件模板的名称。
- Type email addresses separated by a semicolon in the To, CC, and BCC text boxes as necessary, or use an ArcGIS Arcade expression to create a dynamic list of recipients.
One email address
user1@test.com
Multiple email addresses
user1@test.com;user2@test.com;user3@test.com;user4@test.com
Email addresses and Arcade expressions
user1@test.com;"arcadeExpression()";user3@test.com;"arcadeExpression()"
One Arcade expression
"arcadeExpression()"
Multiple Arcade expressions
"arcadeExpression()";"arcadeExpression()";"arcadeExpression()";"arcadeExpression()"
Arcade expressions and email addresses
"arcadeExpression()";user2@test.com;"arcadeExpression()";user4@test.com
注:
At least one valid email address or Arcade expression must be provided in the To, CC, or BCC text box.
- 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'.
- 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 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>.'
注:
You must enable the HTML Notification option to use HTML tags in the email body field.
- Optionally, if your jobs include attachments, 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.
注:
If a job contains multiple attachments, they are sent as a single ZIP file and attachment folder structure is maintained.
- Optionally, type a job ID in the Preview Email text box and click Preview to preview the email.
注:
If the email contains an Arcade expression for the output value of a step, the step must be completed before you can preview the output value.
- 单击保存保存电子邮件模板。
编辑电子邮件模板
要编辑电子邮件模板,执行以下操作:
- Access the Workflow Manager web app.
- Click the Design tab.
The Design page appears.
注:
The Design tab won't appear if you don’t have sufficient privileges.
- Click the Templates button .
注:
The Templates button won't appear if you don’t have sufficient privileges.
- Click the Email Templates tab.
The Email Templates panel appears.
- 在电子邮件模板面板中单击要编辑的电子邮件模板的名称。
提示:
可通过在搜索电子邮件模板文本框中键入搜索项,在电子邮件模板面板中过滤电子邮件模板列表。
- 根据需要更新电子邮件模板。
- Optionally, type a job ID in the Preview Email text box and click Preview to preview the email.
注:
If the email contains an Arcade expression for the output value of a step, the step must be completed before you can preview the output value.
- 单击保存以保存更改。
删除电子邮件模板
删除电子邮件模板是永久操作,无法撤消。 要删除优先级,执行以下操作:
- Access the Workflow Manager web app.
- Click the Design tab.
The Design page appears.
注:
The Design tab won't appear if you don’t have sufficient privileges.
- Click the Templates button .
注:
The Templates button won't appear if you don’t have sufficient privileges.
- Click the Email Templates tab.
The Email Templates panel appears.
- 在电子邮件模板面板中单击要删除的电子邮件模板的名称。
提示:
可通过在搜索电子邮件模板文本框中键入搜索项,在电子邮件模板面板中过滤电子邮件模板列表。
- 单击更多操作按钮 ,然后单击删除。
将显示一条确认消息。
- 单击是删除电子邮件模板,或单击否取消操作。