You need to sign in to do that
Don't have an account?

Lead "Standard" Field Map to Contact "Custom" field
Hi,
I have a Standard Lead Field in SFDC Rating.
Rating is a picklist field.
When converting a Lead, I would like this field to auto mapped to a Contact "Custom Field (Rating)" - Also a picklist with same value on the Lead page.
I couldn't find "Mapping Fields" on the leads page when clicking on the button.
Can someone help?
Set<id> setAccountId=new Set<id>();
Map<id,Account> mapAccount=new Map<id,Account>();
for(Contact con:trigger.New)
{
if(con.AccountId!=null)
setConId.add(con.AccountId);
}
for(Account acc:[select id,Rating from Account where id in : setAccountId])
{
mapAccount.put(acc.id,acc);
}
for(Contact con:Trigger.New)
{
con.Rating__c = mapAccount.get(Con.Accountid).Rating;
}
}