You need to sign in to do that
Don't have an account?
Sahil Yadav
lwc implementation code
@AuraEnabled(cacheable=true) public static Account getAccRec(String accId){ Account AccObj = new Account(); AccObj = [select id,Floor_Plan_Providers__c ,Name,BillingStreet,BillingState,BillingCity,BillingCountry,BillingPostalCode from Account where id=:accId Limit 1]; return AccObj; } =================================================================== <template> <lightning-quick-action-panel header="Edit Fields Action"> <lightning-record-edit-form record-id={recordId} object-api-name={objectApiName} onsuccess={handleSuccess}> <!--<lightning-input-field field-name="Name"></lightning-input-field> <lightning-input-field field-name="Phone"></lightning-input-field>--> <!--<lightning-output-field field-name="Floor_Plan_Providers__c"></lightning-output-field> <lightning-input-field field-name="Floor_Plan_Providers__c"> {toEmail}</lightning-input-field>--> <lightning-input type="text" label="Email" value = {toEmail}></lightning-input> <lightning-input type="text" label="Subject" value="FP_Lead_Email_Notification" ></lightning-input> <lightning-input-field label = "CC"></lightning-input-field> ================================================================= import { LightningElement, api, wire } from 'lwc'; import { getRecord } from 'lightning/uiRecordApi'; import getAccRecord from '@salesforce/apex/emailController.getAccRec'; export default class sendEmail extends LightningElement { @api recordId; accounts; toEmail; @wire (getRecord, {accId: '$recordId'}) getAccRecs({error, data}){ console.log(data); if(data){ this.accounts = data; this.error = undefined; toEmail = accounts.Floor_Plan_Providers__c; } else if(error){ this.accounts = undefined; this.error = error; } }
If this is the code implementation you have tried for the below question please update the question or try to add another question with both code and description.
It would be hard if the question and code implementation are in different questions.
https://developer.salesforce.com/forums?id=9062I000000UcawQAC
Please close this by marking as best answer so it helps others.
Thanks