• #25490
    Salesforce | Suryadeep Suryadeep #573
    Forcetalks

    How can we insert a dynamic value in the Email Body of an Email Template in Salesforce?

    Can we dynamically generate the body of an Email Template?

     

    • This topic was modified 11 months ago by Salesforce | Suryadeep Suryadeep.
    • This topic was modified 11 months ago by Salesforce | Team Team.
    • This topic was modified 11 months ago by Salesforce | Team Team.
    #25575
    Salesforce | Adarsh Adarsh #683
    Forcetalks

    Hi Suryadeep,

    Yes, it is possible through ‘VisualForce Email Template’ type. you may pass dynamic values in this kind of email templates.

    Hope it helps 🙂

    #35052
    Salesforce | Parul Parul #2
    Forcetalks

    Yes, you can use “VisualForce Email Template” by this you can pass dynamic values in Email template.

     

     

    Thanks

    #35946
    Salesforce | shariq shariq #1
    Forcetalks

    Hi,

    You can pass the field value to the template like {!Accouont.Name}.

    Hope this helps.

    #35999
    Salesforce | Parul Parul #2
    Forcetalks

    Here is example;

    <messaging:emailTemplate subject=”List of opportunity” recipientType=”User” relatedToType=”Account”>
    <messaging:htmlEmailBody >
    Hi,<br/>
    Below is the list of opportunities for your account {!relatedTo.Name}.<br/><br/>
    <c:OpptyList AcctId=”{!relatedTo.Id}” /><br/><br/>
    <b>Regards,</b><br/>
    {!recipient.FirstName}
    </messaging:htmlEmailBody>
    </messaging:emailTemplate>

     

    Thanks

Viewing 5 posts - 1 through 5 (of 5 total)

Please to reply to this topic.

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2019 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?