You need to sign in to do that
Don't have an account?
Roshan 10
How to get the inserted record as an object when using the <lightning:recordForm> in the JavaScript controller?
This is the link for the documentation for <lightning:recordForm>
https://developer.salesforce.com/docs/component-library/bundle/lightning:recordForm/documentation
The example shows how to get the record Id using event.getParam("id") in the handleSuccess JavaScript function.
How can I get the inserted record.
for ex: If I am creating a new Account record how can I get that entire record so that I can directly pass it to an event attribute
https://developer.salesforce.com/docs/component-library/bundle/lightning:recordForm/documentation
The example shows how to get the record Id using event.getParam("id") in the handleSuccess JavaScript function.
How can I get the inserted record.
for ex: If I am creating a new Account record how can I get that entire record so that I can directly pass it to an event attribute
The onsuccess event returns the record object, including the ID of the newly created account
Anudeep
Can you provide the function to extract the record similar to the example you provided to retrieve the Id
var params = event.getParams();
alert(params.id);
Thanks,
Roshan