可创建电子邮件模板以与作业活动一起用于在执行特定作业活动时发送电子邮件通知。
创建电子邮件模板
要创建电子邮件模板,执行以下操作:
- Access the Workflow Manager web app.
- Click the Design tab.
The Design page appears.
注:
If you don't have sufficient privileges, the Design tab is not available.
- Click Templates .
注:
If you don’t have sufficient privileges, the Templates button is not available.
- 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
One Arcade expression
"GetUser($CurrentPortal, JobOwner($Job))['Email']"
Multiple Arcade expressions
"GetUser($CurrentPortal, JobOwner($Job))['Email']";"GetUser($CurrentPortal)['Email']";"GetUser($CurrentPortal, LastRunner($Job, 'f50d740d-cc04-9296-4ce3-181e82604465'))['Email']"
Email addresses and Arcade expressions
user1@test.com;"GetUser($CurrentPortal, JobOwner($Job))['Email']";user3@test.com;"GetUser($CurrentPortal)['Email']"
注:
At least one valid email address or Arcade expression must be provided in the To, CC, or BCC text box.
提示:
Click This input supports Arcade Expressions and choose an ArcGIS Arcade expression to add it to its associated 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. If the subject contains plain text and Arcade expressions, you'll need to format the text as follows:
JobName($Job) + ' is ready'
- Type the message text for the email notification in the Body text box.
You can also use ArcGIS Arcade expressions to provide a dynamic value for the body. If the body contains plain text and Arcade expressions, you'll need to format the text as follows:
'<b>' + JobName($Job) + '</b>, created by <b>' + JobCreator($Job) + '</b>, was started on <b>' + Text(Date(JobStartDate($Job)), 'dddd, MMMM D, Y') + '</b>.'
注:
You must enable the HTML Notification option to use HTML tags in the Body text box.
- 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 job attachment folder names in the By Folder text box to specify the job attachment folders to include in the email notification.
注:
Job attachment folders are contained in the workflow item and are not file system paths.
注:
If a job contains multiple attachments, they are sent as a single .zip file and attachment folder structure is maintained.
- Optionally, click Preview to preview the email.
注:
If the email contains a job-specific Arcade expression, you must provide a valid job ID in the Preview Email text box before you can preview the Arcade expression. 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.
注:
If you don't have sufficient privileges, the Design tab is not available.
- Click Templates .
注:
If you don’t have sufficient privileges, the Templates button is not available.
- Click the Email Templates tab.
The Email Templates panel appears.
- 在电子邮件模板面板中单击要编辑的电子邮件模板的名称。
提示:
可通过在搜索电子邮件模板文本框中键入搜索项,在电子邮件模板面板中过滤电子邮件模板列表。
- 根据需要更新电子邮件模板。
- Optionally, click Preview to preview the email.
注:
If the email contains a job-specific Arcade expression, you must provide a valid job ID in the Preview Email text box before you can preview the Arcade expression. 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.
注:
If you don't have sufficient privileges, the Design tab is not available.
- Click Templates .
注:
If you don’t have sufficient privileges, the Templates button is not available.
- Click the Email Templates tab.
The Email Templates panel appears.
- 在电子邮件模板面板中单击要删除的电子邮件模板的名称。
提示:
可通过在搜索电子邮件模板文本框中键入搜索项,在电子邮件模板面板中过滤电子邮件模板列表。
- 单击更多操作按钮 ,然后单击删除。
将显示一条确认消息。
- 单击是删除电子邮件模板,或单击否取消操作。