• Kim Ashley
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hey Everyone, I am trying to do a query call to a child object and the parent object is a standard object. I am getting a error. Please help.
Thank you in Advance.

--------------This works standard object--------------
List<case> cas = [SELECT AccountId,CreatedById FROM case WHERE Id ='50005000005ym2OAAQ' ];

--------------This works custom object-------------------------
List<Quote_Request__c> req =[SELECT name FROM Quote_Request__c WHERE Id='a1505000000qzRjAAI'];

---------------This does not work---------------------------------
List<case> cases =[SELECT AccountId,CreatedById,(SELECT name FROM case.Quote_Request__c) FROM case WHERE Id ='50005000005ym2OAAQ']
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.