Create Opp from Contact
Last updated
Last updated
This document outlines a method for creating opportunities directly from the contact record in Salesforce, streamlining the opportunity creation process, and ensuring accurate attribution data.
There are several benefits to creating opportunities directly from the contact record:
Streamlined process: All users will follow the same process for opportunity creation, ensuring consistency and reducing errors.
Accurate attribution: By tying the account record, opportunity record, and primary contact to the opportunity, attribution fields in Salesforce are accurately populated, providing valuable insights into lead sources and campaign performance.
Customization: Additional fields can be prepopulated based on the contact record, ensuring that opportunities are created with the necessary information.
Salesforce Administrator permissions
Familiarity with JavaScript
Go to the Contact object manager.
Click the Buttons, Links, and Actions button.
Click the New Button button.
Enter the following information:
Label: New Opportunity
Name: New_Opportunity
Display Type: Detail Page Button
Behavior: Display in existing window with sidebar
Content Source: URL
URL: /lightning/o/Opportunity/new?account={!Account.Id}&primary_contact_id={!Contact.Id}&stage_name={!Stage_Name}&probability={!Probability}&forecast_category={!Forecast_Category}&Name={!Name}&CloseDate={!CloseDate}
Click the Save button.
Go to the Contact object manager.
Click the Page Layouts button.
Click the Edit button next to the desired page layout.
Drag the New Opportunity button to the desired location on the page layout.
Click the Save button.
The URL in the custom button can be customized to prepopulate additional fields on the opportunity creation form. To do this, add the desired field names, API names, and values to the URL, separated by commas. For example:
Once the custom button has been created and added to the contact page layout, users can create opportunities directly from the contact record by clicking the New Opportunity button. The opportunity will be created with the specified account, primary contact, stage name, probability, forecast category, name, and close date. Additional fields can be prepopulated by customizing the URL in the custom button.