Discussion
How to use a property as an email address in Send Email.
How do I enter a property reference as the Email Address in the To: field on the Send Email smart shape's form? The lesson only covered using Parties, and that's not what the Notifying Users from Within a Process exercise wants. Help just states to use a "property reference", but the usual formats (.ManagerEmail, .Employee.ManagerEmail, or even <<.ManagerEmail>>) don't work, and I can't find a format in Help.
Help entry for Send Email:
SendEmail
Use the SendEmail utility to automatically generate an email. Complete the Automation Details section on the SendEmail property panel as described below.
Field | Description |
Send to | Select from the following: |
To Party | Select to indicate that you would like to sendemail to one or more specific parties. |
Parties | Required, if you select party. Enter or select the work parties you would like to send mail to. |
To | Required, if you selectEmail address. Enter one or more addresses, using a text string or a property reference, and a comma separator between addresses. |
Dear Tom,
If you have created a Text property that holds the email address of the manager at .Employee.ManagerEmail, you can use ".Employee.ManagerEmail" in the "To:" field.
You just have to remember to initialise the value before you send the notification! Usually this is what most students forget to do, and so Send Email will ignore and not send out any mails.
Tip: You can use the pySetFieldDefaults data transform to configure a value for the .Employee.ManagerEmail property. Make sure it's a valid format, e.g. "a@b.com".
Regards,
Teng Hao Chua
Pega Academy Support Team