• About

Salesforce Everywhere

~ All about Salesforce

Salesforce Everywhere

Monthly Archives: February 2015

Populate Opportunity Record type with Lead Record Type

28 Saturday Feb 2015

Posted by Mani in Salesforce Configuration

≈ Leave a comment

Tags

Salesforce Record Types

Welcome to my first post!

In this post, I will explain how we can populate Opportunity record type with Lead record type by using Configuration.

Record types allow us to offer different business processes, picklist values, and page layouts to different users.

Requirement:

Lead has record types (lets say Sales and Support) and the same record type is there for Opportunity too. When a lead is converted to Opportunity, based on the lead record type, Opportunity record type need to be set. For example, when a Sales lead is converted, it should create only Sales Opportunity.

Solution:

No trigger/apex code is required and the desired functionality can be achieved through configuration.

Steps are as follows:

a. Create a Formula field (say rectype) in Lead object with the value as RecordType.Name and set the return type of the field as Text. This will store the record type of the lead.
b. Create a text field (say Lead rectype) in Opportunity object to store Lead Record type.
c. Click on Map Lead fields under Lead Object->Fields. Map the field created in step a to the Opportunity field created in step b.
d. Create a workflow rule under Setup->Create -> Workflow & Approvals to set Opportunity record type(for example to Sales).
1. Evaluation criteria – Set it to “Evaluate the rule when a record is created”. we want the rule to fire every time when a record is created.
2. Set the rule criteria as Opportunity: Lead rectype equals Sales.
3. Add Workflow action as New Field Update. Field to Update as Opportunity: Opportunity Record Type and specify new field value as Sales.
4. Remember to activate the workflow as its not active by default. This can be done by going to Setup->Create->Workflow & Approvals-> click on Activate for the workflow created in step d.

Please share your comments/suggestions.

Blog Stats

  • 57,680 hits

Archives

  • August 2019 (1)
  • July 2019 (1)
  • May 2018 (1)
  • April 2018 (4)
  • December 2017 (1)
  • October 2017 (1)
  • July 2017 (3)
  • June 2017 (1)
  • April 2017 (1)
  • March 2017 (1)
  • June 2016 (1)
  • May 2016 (6)
  • April 2016 (1)
  • March 2016 (2)
  • February 2016 (2)
  • January 2016 (1)
  • December 2015 (3)
  • November 2015 (2)
  • October 2015 (4)
  • September 2015 (10)
  • August 2015 (6)
  • April 2015 (2)
  • March 2015 (3)
  • February 2015 (1)

Recent Posts: Salesforce Everywhere

Lightning Components contd..

Introduction to Lightning Components(Aura Components)

Duration of the events in the Salesforce calendar can’t go beyond 14 days

Tip # 25: Error in creating Lookup relationship

Salesforce Certified Platform Developer I – Spring ’18 Release Exam

Developer links

  • Salesforce Developer website
  • ForcePrepare
  • Salesforce Success Community

Connect with me

  • View @manibalan_s’s profile on Twitter
  • LinkedIn

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 15 other followers

Blog at WordPress.com.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy