2

Object-specific quick actions need to have a relationship field between the source object (object you're adding the button to) and the target object you're creating. For example, on an Account you might want to quickly create an Opportunity that is related to the Account. This is possible with a quick action as the Opportunity has a relationship to Account ...


1

Lead can converted using Database.LeadConvert. On conservion lead it will create the account, contact and opportunity(optional). public class LeadConvert { public void convertToAccount() { LeadStatus convertStatus = [select MasterLabel from LeadStatus where IsConverted = true limit 1]; List <Database.LeadConvert> leadConverts = new List <...


Only top voted, non community-wiki answers of a minimum length are eligible