How to Add a Preview of Emails in a Related List
Are you ready to add email previews to your related list? Let's learn how!
Adding a preview of emails to your related list can help users quickly understand what the email is about. Here's how to do it:
Field Configuration
- Go to Setup | Create | Object | e2a Email and create a new field of type text (Can have any name e.g. Preview). Specify its length 255
- Select appropriate profiles in Establish field-level security and click Next
- Select appropriate page layouts in Add to page layouts and click Next (There is no requirement for this field to be visible on any layout and can thus be kept hidden)
Flow Configuration
To get started with setting up the Salesforce Flow needed, follow the instructions below:
-
Click on the gear icon on the top-right of your screen and select Setup
-
Locate the quick find on the left side of your screen and type in Flows and Click on the first returned result under Process Automation.
-
Locate and click on the New Flow button on the right of your screen
-
Choose the Record-Triggered Flow type from the available options and click on the Create button. This will automatically load the Configure Start pop-up.
-
In the Object lookup, select e2a email
-
Under the Configure Trigger section, for Trigger the Flow when: select A record is created
-
For the Optimize the Flow for: options, select Fast Field Updates
-
Click on Done
-
-
Click on the plus sign after the Start element
-
Choose Update Triggering Record element to use
-
When the New Update Records pop-up loads, enter the Label as Update Preview Field
-
Scroll down to the Set Fields Values for the e2a Email Record section
-
For Field choose the Preview email earlier created on the e2a email object
-
Click inside the Value field and choose + New Resource
-
From the Resource Type drop-down choose Formula
-
Enter PreviewFormula as the API Name
-
Enter the Description for the resource i.e., This formula takes the Text Body of the email and only picks up the first 100 characters
-
From the Data Type drop-down choose Text
-
Enter the formula below
-
LEFT({!$Record.ortoo_e2a__Text_Body__c}, 100)
-
-
Click on Check Syntax button and see if the formula is valid
-
-
-
Click on Done for the resource and Update element
-
Save and Activate the Flow
You can now add the preview of emails to the e2a Emails related list by editing the layout of Object (i.e., Leads) and then adding the Preview field by editing the Related List Properties of e2a Emails.
There you have it! You've successfully added a preview of emails to your related list.
Please contact us at support@ortooapps.com for any questions.
★★★★★ - EXCELLENT
★★★★☆ - GOOD
★★★☆☆ - OK
★★☆☆☆ - POOR
★☆☆☆☆ - RUBBISH