This Lightning Web Component (LWC) provides an automated way to create a contact record whenever an account is created in Salesforce. The component ensures that a contact associated with the account is automatically generated, saving time and effort for users.
- Automatically creates a contact record when an account is created.
- The created contact is associated with the corresponding account.
- Seamlessly integrates into Salesforce Lightning App Pages and Lightning Record Pages.
- Requires no manual intervention, streamlining data entry processes.
- Added tooltip help text for Contact Last Name field.
- Automatically sets Contact Last Name to Account's Last Name if not provided.
- Added toast messages for success (green) and error (red).
To use this Lightning Web Component in your Salesforce org, follow these steps:
-
Clone or Download this Repository:
- Clone this GitHub repository to your local machine using the following command:
git clone https://github.com/s4SHIVam7/Auto_Create_Contact_LWC.git
- Clone this GitHub repository to your local machine using the following command:
-
Deploy the Lightning Web Component:
- Deploy the
RecordCreatorWithoutApex
Lightning Web Component to your Salesforce org.
- Deploy the
-
Add the Component to Your Salesforce Page:
- Add the
RecordCreatorWithoutApex.
component to your Lightning App or Record Page.
- Add the
-
Open a Salesforce Lightning Page or App:
- Navigate to a Salesforce Lightning Page or App where you want to enable automatic contact creation.
-
Create a New Account:
- Create a new account as you normally would.
-
Automated Contact Creation:
- As soon as you create the account, a corresponding contact is automatically created and associated with that account.
This Lightning Web Component is designed for a specific use case where a contact needs to be created automatically with each account. There's minimal customization required. However, you can modify the component if needed.
For questions, support, or feedback, please feel free to reach out:
- Telegram: @shivam_l
- LinkedIn: Shivam Laidwar