function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Manish DeshmukhManish Deshmukh 

In Lightning I want to add one button on Account Object and click on this button i want to create contact record and some value is passed from account to contact

Deep Grewal 8Deep Grewal 8
Hi Manish,

Sounds like what you want to accomplish is very similar to the following Trailhead Challenge:
Then use that component to create a Lightning action on the Account object. When the action’s button is clicked, it creates a new contact based on form input. 

https://trailhead.salesforce.com/modules/lex_javascript_button_migration/units/javascript_buttons_to_lightning_actions