You need to sign in to do that
Don't have an account?
AJAY
Lwc embedded in aura component which is kept in quick action.
I have a object A and object B. B object has a field which is a lookup to object A.
Now as they are related, under records of object A i have object b records as related list.
Now what i want to achieve is i want to create a quick action on record A. I kept a quick action which is a lightning component with LWC embedded into it.
Now upon clicking quick action, i want to show the details of the record of object A + LWC(record details of object B).
Imagine. Object A is account and object B is custom object x__c and has fields example1, example2
It should look Like below: account information + input fields of object x__c.
Account info:
Account name: abc
Account address: xyz
Account phone: 123
X__c info:
example1(to be input):
example2(to be input):
Is it possible ?
Now as they are related, under records of object A i have object b records as related list.
Now what i want to achieve is i want to create a quick action on record A. I kept a quick action which is a lightning component with LWC embedded into it.
Now upon clicking quick action, i want to show the details of the record of object A + LWC(record details of object B).
Imagine. Object A is account and object B is custom object x__c and has fields example1, example2
It should look Like below: account information + input fields of object x__c.
Account info:
Account name: abc
Account address: xyz
Account phone: 123
X__c info:
example1(to be input):
example2(to be input):
Is it possible ?
Any reason to do that, even you have an option to add a new record directly from the account.
But anyway here is the code, I used Contact which you can replace with your custom object
Lightning web component
html file
js file
In order to make it work on the Quick Action Button you need to create an aura component and reference the above LWC. Unfortunately as per my knowledge this is the only way to do that. Currently with LWC it is not available
Create an aura component and reference like this
accountContactView is the name of my above LWC component I hope this help