Source: https://vaultcrmhelp.veeva.com/doc/Content/CRM_topics/Events/AE/AutomatedAEforEM.htm

## Sending Automated Approved Emails for Events Management

Admins can improve event attendance and engagement by using event rules to automate emails. This enables them to determine which emails are sent, when emails are sent, and who receives the emails.

For example, a registration reminder is emailed ten days before the event to attendees who have not yet registered. Event organizers receive a summary of sent automated Approved Emails, which they can use to review the recipients and Approved Email templates used.

**Who can use this feature?**

* Business Admin Users - Browser
* [Creating Automated Approved Email Event Rules](#Creating)
* [Scheduling Automated Event Approved Emails](#Scheduli)
* [Viewing Successes and Failures of the Automated Event Emails Process](#Viewing)
* End Users - Browser
* [Reviewing Sent Automated Approved Emails](#Reviewin)
* Users require Approved Email and Events Management Licenses

### Configuring Automated Approved Emails

[![Closed](../../../../Skins/Default/Stylesheets/Images/transparent.gif)Business Admin Users](#)

To configure this feature:

1. Ensure [Using Approved Email for Events Management](ApprovedEmailforEM.htm) is enabled.
2. Navigate to **Admin > Users & Groups > Permission Sets**.
3. Select the appropriate permission set.
4. Select the **Objects** tab.
5. Grant the following permissions:

   | Object | Object Permission | Object Type | Fields | Field Permission |
   | --- | --- | --- | --- | --- |
   | em\_event\_rule\_\_v | CRED | automated\_emails\_\_v | * email\_template\_\_v * description\_\_v * product\_\_v * all\_products\_\_v * event\_format\_\_v * email\_recipients\_\_v * event\_attendee\_entry\_criteria\_\_v * event\_speaker\_entry\_criteria\_\_v * timing\_value\_\_v * timing\_measure\_\_v * event\_timing\_\_v | Edit |
   | sent\_email\_\_v | CRED | events\_management\_\_v | event\_execution\_id\_\_v | Edit |
6. Ensure users have at least Read permission for any objects or fields referenced by tokens in Email Templates used for automated emails.
7. Navigate to **Business Admin > Objects > events\_management\_settings\_\_v** and select the global record.
8. Populate one or both of the following settings:

   * event\_attendee\_email\_source\_\_v – Enables sending automated Approved Emails to an event's attendees and defines the source of recipient email addresses. Populate with a comma separated list of up to five Email type fields from the following objects:

     + account\_\_v
     + address\_\_v
     + em\_attendee\_\_v

     Use the format ObjectAPIName1.FieldAPIName1,ObjectAPIName2.FieldAPIName2. For example, account\_\_v.primary\_email\_cda\_\_v,em\_attendee\_\_v.email\_\_v
   * event\_speaker\_email\_source\_\_v – Enables sending automated Approved Emails to an event's speakers and defines the source of recipient email addresses. Populate with a comma separated list of up to five Email type fields from the following objects:

     + account\_\_v
     + address\_\_v
     + em\_event\_speaker\_\_v
     + em\_speaker\_\_v

     Use the format ObjectAPIName1.FieldAPIName1,ObjectAPIName2.FieldAPIName2. For example, em\_speaker\_\_v.email\_\_v,account\_\_v.primary\_email\_cda\_\_v

   Recipient email addresses are determined sequentially based on the delimited list, so admin users should prioritize the order of email sources. If the configured email source values exceed the character limit, create a corresponding Veeva Message with the values, then populate the Events Management Setting with the created Veeva Message.

[![Closed](../../../../Skins/Default/Stylesheets/Images/transparent.gif)End Users](#)

To configure this feature, ensure [Using Approved Email for Events Management](ApprovedEmailforEM.htm) is enabled.

### Creating Automated Approved Email Event Rules as

[![Closed](../../../../Skins/Default/Stylesheets/Images/transparent.gif)Business Admin Users](#)

To define Approved Emails to send automatically:

1. Navigate to the **Event Rules** related list of the appropriate em\_event\_configuration\_\_v record.
2. Select **New**.
3. Select **automated\_emails\_\_v** for the object type.
4. Select **Continue**.
5. Populate the following fields:

   * em\_event\_configuration\_\_v – The Event Configuration associated with the rule. If you created the new em\_event\_rule\_\_v record from the Event Rules related list of an em\_event\_configuration\_\_v record, this field populates automatically.
   * email\_template\_\_v – Populate with the appropriate approved\_document\_\_v record to serve as the email template. Only approved\_document\_\_v records with a status of approved\_\_v and a object type of events\_management\_\_v display as available for selection.
   * description\_\_v – Optional
6. Populate the following fields to define which types of recipients the email should be sent to:

   * email\_recipients\_\_v – The automated email's recipient type. Available values are:
   * event\_speaker\_\_v
   * event\_attendee\_\_v
   * event\_attendee\_entry\_criteria\_\_v – A comma separated list of status\_\_v values on the em\_attendee\_\_v object determining which attendees should receive the automated email. This field is optional. If this field is left blank, all event attendees are included in the automated email.

     For example: attended\_\_v,signed\_\_v

     This field only applies if event\_attendee\_\_v is selected in the email\_recipients\_\_v field.
   * event\_speaker\_entry\_criteria\_\_v – A comma separated list of status\_\_v values on the em\_event\_speaker\_\_v object determining which speakers should receive the automated email. This field is optional. If this field is left blank, all event speakers are included in the automated email.

     For example: accepted\_\_v,invited\_\_v

     This field only applies if event\_speaker\_\_v is selected in the email\_recipients\_\_v field.
7. Populate the following fields to define when the automated email should be sent in relation to the event's start\_time\_\_v or end\_time\_\_v field:

   * timing\_measure\_\_v – The timing measurement used to calculate when the automated email sends for each matching event. Used in conjunction with the timing\_value\_\_v field to send the email. Available values are:
   * days\_\_v
   * hours\_\_v
   * timing\_value\_\_v – The quantity of time used to calculate when the automated email sends for each matching event. This value must be valid based on the selected timing measure. For example:
   * If timing\_measure\_\_v = days\_\_v, the timing\_value\_\_v field must be between 0 and 365
   * If timing\_measure\_\_v = hours\_\_v, the timing\_value\_\_v field must be between 0 and 24
   * event\_timing\_\_v – Determines whether the timing\_measure\_\_v and timing\_value\_\_v fields apply to time before or time after the event. The following values are available:
   * before\_event\_\_v
   * after\_event\_v
8. Populate the following optional fields to match the rule to events with matching values:

   * country\_override\_\_v – The event country aligned to the rule. If this field is left blank, the rule applies to all countries under the event configuration.
   * product\_\_v – The product aligned to the rule. If this field is left blank, the rule applies to events without a defined product.
   * all\_products\_\_v – Select this checkbox to apply the rule to events with any product

     This field cannot be used when a specific product is defined in the product\_\_v field.
   * event\_format\_\_v – The event format that is aligned to the rule. If this field is left blank, the rule applies to events without a defined format.

   ![](../../../Resources/Images/Events/AE/AutomatedAEforEM2.png)
9. Select **Save**.

### Scheduling Automated Event Approved Emails as

[![Closed](../../../../Skins/Default/Stylesheets/Images/transparent.gif)Business Admin Users](#)

sent\_email\_\_v records are created for automated Approved Emails via the Automated Event Email process based on automated\_email\_\_v type event rules and any events matching the rule. The Automated Event Email process runs whenever the Approved Email job in the [Process Scheduler](../../Integration/Process_Scheduler.htm) runs, whether via scheduled job or via the manual Run button, and creates sent\_email\_\_v records based on the time defined by the event rule and the scheduled job.

sent\_email\_\_v records are only created when the process runs based on the event rule timing value. Admins should [schedule the Approved Email job](../../Multichannel/ApprovedEmail/ConfiguringAE/AECRMVaultIntegration.htm) based on the most frequent event rule timing. See the [following examples](#Example) for more information.

Emails do not send for events with a status of canceled\_\_v, canceled\_processed\_\_v, or closed\_\_v.

#### Sending Scheduled Automated Approved Emails

sent\_email\_\_v records are only created and scheduled once. If new attendees are added after the job, or if the job runs outside the timing window of the event rule, sent\_email\_\_v records are not created and emails do not send. Automated emails are sent once per attendee or speaker, scheduled time, and event rule combination, ensuring duplicate emails are not sent to recipients.

If an event reaches the scheduled time and is later rescheduled, automated emails are resent when the scheduled time occurs again.

Scheduled sent\_email\_\_v records are also processed during the job. If a newly created sent\_email\_\_v record has a scheduled send time after the job, the emails sends the next time the job runs. If scheduled emails need to be processed more frequently than the scheduled job, administrators can [configure scheduled sent\_email\_\_v records](../../Multichannel/ApprovedEmail/ConfiguringAE/AECRMVaultIntegration.htm) to process every 10 minutes.

The Incremental Refresh and Force Full Refresh buttons on the Approved Email Administration tab do not trigger the Automated Event Email process. The Automated Event Email process runs after all Content Sync processes complete, including syncing Events Management Email Templates.

#### Updating Expired Email Templates

When the Approved Email job runs or the Incremental Refresh and Force Full Refresh buttons are selected, the job automatically checks for the latest versions of Approved Email templates. If any expired approved\_document\_\_v email templates are associated with an automated email rule, the rule updates with the latest version of the corresponding template.

#### Example of an Hourly Rule

For example, an event rule is configured to send email reminders to registered attendees six hours before an event taking place on April 26 at 7:00 PM. The Approved Email job is scheduled to run every hour. When the hourly Approved Email job runs on April 26 at 12:30 PM, emails that need to be sent between 12:30 PM and 1:30 PM are created as sent\_email\_\_v records for each attendee and are scheduled to send at 1:00 PM, six hours before the event.

#### Example of a Daily Rule

In another example, an event rule is configured to send registration reminders to invited attendees seven days before an event taking place on April 26 at 6:00 PM. The Approved Email job is scheduled to run daily. When the daily Approved Email job runs on April 19 at 8:00 AM, emails that need to be sent between April 19 8:00 AM to April 20 8:00 AM are created as sent\_email\_\_v records for each attendee and are scheduled to send on April 19 at 6:00 PM, seven days before the event.

### Viewing Successes and Failures of the Automated Event Emails Process as

[![Closed](../../../../Skins/Default/Stylesheets/Images/transparent.gif)Business Admin Users](#)

Business admin users can review the Automated Event Emails process for troubleshooting purposes using the Automated Event Email Administration section of the Approved Email Administration tab.

The table in this section displays the last 30 days of the Automated Event Email process, along with a count of any processing errors, sent\_email\_\_v records emails created, or sent\_email\_\_v records not created in each job. Consent and restricted product configuration is respected when sending automated emails. If a recipient does not have valid consent, the email is logged as Sent Emails Not Created. Select a number in the Errors, Emails Created, or Emails Not Created columns to download a CSV file with more details about the job.

Sent Emails Created represents scheduled sent\_email\_\_v records that were created successfully. To view the status and delivery of emails, view the status\_\_v field on the corresponding sent\_email\_\_v records.

### Reviewing Sent Automated Approved Emails as

[![Closed](../../../../Skins/Default/Stylesheets/Images/transparent.gif)End Users](#)

End users are notified about automated event emails sent for their events via email when the Automated Event Emails process completes, enabling end users to be aware of the emails successfully or unsuccessfully sent to their event's attendees or speakers.

Only event\_team\_member\_\_v records with a role of organizer\_\_v who are also system users in Vault CRM receive the summary email. Group and Write-In team members are not supported.

![](../../../Resources/Images/Events/AE/AutomatedAEforEM.png)

The summary email contains a CSV file that users can use to view details about each automated email, including both sent and failed emails.

### Related Topics

[Using Approved Email for Events Management](ApprovedEmailforEM.htm)

[Process Scheduler](../../Integration/Process_Scheduler.htm)
