Skip to main content
sweta kumari (Accenture) 님이 #TrailblazerCommunity에 질문했습니다

my requirment is if the account have custom field status is in 'completed and submitted 'status ,related contact objects standard action new button clicking display error'contact cannot be worked for this account

this requirment is on lwc component with apex class

i am using my soql query in account [select id ,status from account where id :=recordId]

but when i pass this recordId in my lwc js

connectedcallback()

{

getaccountdata(recordId:this.formId)

{

 

}

 facing this.formId as undefined

please anyone help me with code #TrailblazerCommunity #Integration #Flow #Trailhead Challenges@Trailblazer Community Cove

 

#Salesforce #LWC #Lightning Aura Component #Salesforcecommunity #Apex

답변 1개
  1. 2023년 11월 13일 오후 11:59

    Hello @sweta kumari, not sure to fully understand. 

    Have you tried to pass the recordId with :

    @api recordId;

    Eric

0/9000