• Deana Nixon
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hi there,
So i tried creating the send email quick action
Below is the code from salesforce doc that i am referring to create send email quick action.
.js code :
({
    doInit: function (cmp, event, helper) {
        $A.get("e.force:closeQuickAction").fire();
        var navService = cmp.find("navService");
        var actionApiName = "Global.SendEmail";
        var pageRef = {
            type: "standard__quickAction",
            attributes: {
                apiName : actionApiName
            },
            state: {
                recordId : cmp.get("v.recordId")
            }
        };
        var defaultFieldValues = {
            HtmlBody: "Monthly Review",
            Subject : "Monthly Review"
        }
        pageRef.state.defaultFieldValues = cmp.find("pageRefUtil").encodeDefaultFieldValues(defaultFieldValues);
    
        navService.navigate(pageRef);
    },
})
So here i want to know how can we add default dynamic email template.
How can we add email template. Thanks.