Send email
The Salesforce Send email action sends emails through your connected Salesforce org to specified recipients. This write action sends a single new email each time it runs. Repeating the same step will send duplicate emails.
Limitations
- Email delivery can fail if identity data is incomplete for the target user, for example, missing Department attributes in Okta in some environments.
- As with other Salesforce actions, the exact parameter set and behavior can change over time. Confirm how this action behaves in your own environment before you depend on it for large-scale or fully automated contact creation.
Prerequisites
-
Your Salesforce org must be connected as a data source in Glean, and an admin must enable the Salesforce action pack and complete Salesforce Actions Setup.
-
Users must authenticate for Salesforce actions on first use.
Supported parameters
| Parameter | Type | Description |
|---|---|---|
| Attachment ids | String | Files you want to attach to the email, referenced by their Salesforce IDs (for example, 068…, 015…, or 069…). You can provide one or more IDs as a comma-separated string or as a list. |
| Bcc addresses | String | Recipients who get a private copy of the email. Other recipients will not see these addresses; provide one address or a comma-separated list. |
| Body | String | Required. Main content of the email message. Can be plain text or HTML depending on the value of is_html. |
| Cc addresses | String | Recipients to copy on the email. Visible to all recipients; provide one address or a comma-separated list. |
| Is html | Boolean | Set to true if the email body contains HTML formatting (such as bold text, links, or paragraphs); leave false for plain-text messages. |
| Log email | Boolean | Choose whether to automatically log this email to the recipient’s activity timeline in Salesforce. Turn on to keep a record in Salesforce. |
| Org wide email address ID | String | Salesforce Org-Wide Email Address ID to send from a shared company address so the email appears from that approved address. |
| Recipient ID | String | Salesforce ID of the person you are emailing (for example, a Lead, Contact, or Person Account), used for logging and merge fields. |
| Related record ID | String | Salesforce ID of the record you want to relate this email to (such as an Account, Opportunity, or Case) so it appears on that record’s timeline and can use related merge fields. |
| Sender address | String | Email address to send from, typically used with an org-wide email address. If you do not know the ID, you can provide the actual org-wide email address (for example, noreply@company.com) so the system can look up the correct ID. |
| Sender type | String | Determines who the email is sent from. Use CurrentUser (default) to send as the current user or OrgWideEmailAddress to send from a shared company address. |
| Subject | String | Required. Subject line of the email. |
| To addresses | String | Required. Primary recipient email addresses. You can provide a single address, a comma-separated string of addresses, or a list. |
Usage example
You have a new qualified lead from your marketing team and need to send a personalized introduction email through Salesforce, then update the lead status to show your outreach.
Instruction to an agent:
"Find the lead for ABC JIM at XYZ Corp in Salesforce, send her a personalized introduction email with subject Partnership Opportunity with Your Company, include our value proposition in the body, and update her lead status to Working - Contacted."
Resulting behavior:
-
Calls a Salesforce search action to find the Lead matching "ABC JIM at XYZ Corp".
-
Retrieves the Lead ID (for example, "00Qxx000001234567") and email address.
-
Calls Send email with:
-
To addressesset to abc's email address (for example, "abc.jim@example.com"). -
Subjectset to "Partnership Opportunity with Your Company". -
Bodyset to personalized email content with value proposition. -
Is htmlset to true to include formatting. -
Recipient IDset to "00Qxx000001234567" (the Lead ID). -
Log emailset to true to record on the Lead's activity timeline. -
Sender typeset to "CurrentUser" to send as the authenticated user.
-
-
Sends the email through Salesforce.
-
Logs the email on the Lead's activity timeline in Salesforce.
-
Calls Update lead action to change status to "Working - Contacted".
-
Confirms the email was sent and the Lead status updated.
Workflow tip: Combine this action with Salesforce search to find leads or contacts first, then send personalized emails. Use the Log email parameter to automatically record the email on the recipient's timeline, or call Log email activity separately for more control. You can also combine with conditional logic to send different email templates based on lead properties like industry or region.