function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ragnar Lothbrok 7Ragnar Lothbrok 7 

How can we add default email template in this quick action ?

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.
Kim AshleyKim Ashley
Apply a Default Email Template Using the Send Email Quick Action : Create a Send Email quick action or modify an existing Send Email quick action. From Setup, enter “Case” in the Quick Find box, then select Buttons, Links, and Actions. Check that you have the appropriate email body field for your template. Click Save.   https://www.myccpay.vip
Deana NixonDeana Nixon
Your post was very helpful for my problem. tiny fishing (https://tinyfishing.co) is also a good website that you can refer to.