User wants to send an email to the Customer’s multiple Contacts listed in their Customer record sublist after creating a record.
Solution
- Create a Custom Record which will Hold the Email Template
- Navigate to Customization > List, Records & Fields > Record Types > New
- Name: Enter Name
- Example: Email Template Record
- Click Save & Edit
- Click Fields
- Click New Field
- Label: Enter Label
- Example: Email Template
- Store Value: Enter Checkmark
- Type: Select Long Text
- Click Save & New
- Label: Enter Label
- Example: Email Template Name
- Store Value: Enter Checkmark
- Type: Select Free Form Text
- Click Save
- Create Custom Transaction Body Field for Name of Email Template
- Navigate to Customization > List, Records & Fields > Transaction Body Fields > New
- Name: Enter Name
- Example: Email Template on Record
- Store Value: Remove Checkmark
- Type: Select List/Record
- List/Record: Select the Custom Record created from Step 1
- Click Save
- Create Email Template Custom Transaction Body Field
- Navigate to Customization > List, Records & Fields > Transaction Body Fields > New
- Name: Enter Name
- Example: Email Template on Record
- Store Value: Remove Checkmark
- Type: Select Long Text
- Click Sourcing & Filtering
- Source List: Select Custom Record created from Step 1
- Source From: Select Custom Transaction Body Field created from Step 2
- Click Save
- Create Saved Search
- Navigate to Lists > Search > Saved Searches > New
- Click Contacts
- Search Title: Enter Title
- Example: Emails of Subcontacts
- Click Criteria
- Click Standard
- Filter:
- Select Customer Fields…
- Select Name/ID
- Name/ID: Select is not empty
- Click Set
- Click Results
- Click Columns
- Field:
- Note: For every required field use the drop-down menu to select it and once adjusted click Add if needed.
- Select Formula (Text)
- Summary Type: Select Minimum
- Formula: Enter NS_CONCAT(DISTINCT{email})
- Click Available Filters
- Filter:
- Note: For every required field use the drop-down menu to select it and once adjusted click Add if needed.
- Select Customer Fields…
- Customer Filter: Select Internal ID
- Show in Filter Region: Enter Checkmark
- Click Save & Run
- Create Custom Entity Field
- Navigate to Customization > Lists, Records & Fields > Entity Fields > New
- Label: Enter Label
- Example: Contact Emails
- Store Value: Remove Checkmark
- Click Applies To
- Customer: Enter Checkmark
- Click Validation & Defaulting
- Search: Select the Saved Search created from Step 1
- Click Save
- Create Workflow
- Navigate to Customization > Workflow > Workflows > New
- Basic Information:
- Name: Enter Name
- Example: Send Email Workflow
- Record Type: Select Customer
- Sub Types: Select Customer
- Execute As Admin: Enter Checkmark
- Release Status: Select Released
- Keep Instance and History: Select Always
- Enable Logging: Enter Checkmark
- Initiation: Select Event Based
- Event Definition:
- On Create: Enter Checkmark
- On View or Update: Enter Checkmark
- Trigger Type: Select -All-
- Click Save
- Click State 1
- Bottom right corner: Click New Action
- Click Send Email
- Basic Information:
- Trigger On: Select After Record Submit
- Parameters:
- Recipient: Select From Field
- Record (Join Field): Select Customer
- Field: Select Custom Entity field created from Step 2
- Click Save