The directstandardemail parameter shows a preview of a Salesforce standard email template before the email is sent. Users can check the content and structure of the email before it goes out.
Syntax
As an Other Parameter on the solution's Assign Behaviors page:
Parameter Name: directstandardemail Parameter Value: 1
In the solution button's URL (Docs Made Easy adds each Other Parameter to the button URL for you; see Parameters explained):
&directstandardemail=1
Values
| Value | Effect |
|---|---|
1 | Shows a preview of the Salesforce standard email template before the email is sent. |
The solution must use a Salesforce standard email template (the Standard Email Template field).
Where to add it
On your solution's Assign Behaviors page, click Other Parameter in the sidebar, then click Add Other Parameter.
Enter
directstandardemailin Parameter Name and1in Parameter Value, then click Save.
Example
- Input: a solution that uses a Salesforce standard email template.
- Parameter:
directstandardemail=1. - Output: before the email is sent, the user sees a preview of the standard email template and can check its content and structure.
directstandardemail doesn't send the merged PDF in background mode. To do that, use directemailsender, which works with custom Docs Made Easy email templates. See send the document as an attachment in background mode.
Works in
directstandardemail is set on the solution, not written in a template. It previews a Salesforce standard email template before the email is sent. The email is sent through Salesforce, so Salesforce email limits apply, and the sent email is recorded in the record's activity history.
Common errors
- No preview appears. Check that the solution uses a Salesforce standard email template.
- The email isn't sent, or arrives without the document. See Email not sent or missing the attachment.
- Nothing generates at all. Work through the document didn't generate checklist.