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, [email protected]) 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, “[email protected]”). -
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.
Troubleshooting
Emails are not delivered
Emails are not delivered
- Possible cause: The outbound email is not configured for your deployment, for example, SendGrid and proactive email flags are not set correctly.
- Fix: Work with your Glean admin to review email configuration and, for self-hosted environments, confirm that SendGrid and related settings match your production configuration.
Action runs successfully but no one receives the email
Action runs successfully but no one receives the email
- Possible cause: The recipients do not have a valid mailbox, or their identity attributes such as Department from Okta are not correctly populated and synced into Glean.
- Fix: Verify that the recipients have a valid mailbox and that their identity attributes such as Department from Okta are correctly populated and synced into Glean. Update the user attributes in your identity provider, wait for people data to re-sync, and then re-run the agent.
Emails arrive but subject and body are blank
Emails arrive but subject and body are blank
- Possible cause: The agent step before Salesforce Send email is not producing the expected subject and body text, or these values are not passed into the action step.
- Fix: Confirm that the agent step before Salesforce Send email is producing the expected subject and body text, and that these values are passed into the action step. If the setup looks good, capture a run log or screenshot of the agent configuration and open a Glean support ticket referencing the blank message from the Send email action, including your agent ID.
The action fails with an OAuth or connected account not found error
The action fails with an OAuth or connected account not found error
- Possible cause: The connected Salesforce account of the user is missing, inactive, or misconfigured, or the Salesforce connected app used for actions is not set up correctly.
- Fix: Ask the user to re-authenticate Salesforce when prompted by Glean. If errors persist, a Glean admin must verify the Salesforce connected app configuration including callback URL and scopes, confirm that the Salesforce actions setup steps are complete, and have the user retry the action.
FAQs
Does this action send emails from Salesforce or directly from Glean?
Does this action send emails from Salesforce or directly from Glean?
The Salesforce Send email action sends the message through Salesforce, using the Salesforce connection that your Glean admin configured.
Can I use this action together with Salesforce Create lead and Update lead?
Can I use this action together with Salesforce Create lead and Update lead?
Yes, this action is designed to work alongside Salesforce hero actions such as Create lead and Update lead, for example to create a lead from a Google Sheet, send a tailored intro email, and then move the lead to Working in a single guided flow.