Sending automatic emails from cases
By using email, you can share information about a case with stakeholders and case participants. Add the Send Email shape to your business process, to control the number of recipients and the message format. For example, you can inform stakeholders about the approval of a job candidate in a hiring process.
- Add the Send Email shape to the life cycle of your case:
- In the navigation pane of App Studio, click Case types, and then click the case type that you want to open.
- In the Case life cycle section, in a stage, click .
- Click Select.
- In the Step properties pane, identify the email recipients:
- To send the email to one recipient, in the Send to list, select Email address, and then enter the email address of a user who wants to receive information about your case.
- To send an email to more than one recipient, enter the email addresses and separate them with commas.
- To send the email based on the value of a field, in the Send to list, select Field, and then select the name of a field that stores an email address.
- To send the email based on the value of a user reference, in the Send
to list, select User reference, and then select the
name of a user reference from your data model.
At run time, this field stores information about one user only.
- To send the email to a group of stakeholders, in the Send to list, select Participant, and then select the name of a work party that defines a person, or a part of organization that is a participant of your case.
- Optional: To add more recipients, click Add recipient, and then repeat step 2.
- Optional: To send a shared email message to all recipients, select the Send a common
email to all recipients check box.If you leave the Send a common email to all recipients unchecked, an application sends separate email messages to each recipient and the recipients cannot view email addresses of other recipients.
- In the Subject field, enter the title of the email by entering a
string expression. You can reference field names in the title to make it more dynamic and meaningful, for example, “The case “+.pyID + “ has been assigned to you”.
- In the Message content section, define the email content by
clicking Compose, and then editing the message in the rich text
editor:
Choices Actions Compose your own message - Enter and style the text by using the rich text editor toolbar.
Populate your email message with text from a template - In the Compose message window, click Choose template.
- Click a template that you want to use.
- Click Select.After the template text appears in your email message, you can edit this content.
Include the value of a field from your case in your email - In the rich text editor, position the text cursor in the place where you want to add a property.
- On the toolbar, click the Insert property icon.
- Select a property that you want to use.
Provide instant access to the case from your email - In the rich text editor, position the text cursor in the place where you want to add a link.
- On the toolbar, click the Link icon.
- Select the Link to current case check box.
- Enter the display text and title for the link.
- Click OK.
- Click Done.
- Optional: To add attachments to the email, select the Include attachments
check box, and then select the files that you want to upload:
Actions Choices Include all case attachments - Select All case attachments.
Include only specific case attachments - Select Choose attachments.
- select a category or a field that stores the attachments.Categories store groups of attachments with the same business classification, while fields store single attachments.
- Optional: To add multiple attachments, click Add attachment, and ten select another category or field.
- Click Save.
Previous topic Sending event notifications from cases Next topic Sending push notifications from cases