You need to sign in to do that
Don't have an account?
pi r2
Apex trigger to copy from Lead Standard Picklist field to Lead Custom Picklist field
Does anyone have some Apex trigger code that they would be willing to share that would let me copy the value from a Lead Standard Picklist field to a Lead Custom Picklist field on Save?
I'm trying to copy the value from Lead: Status into a Custom Lead Picklist field where the two fields have the same picklist values. A workflow + field update won't work.
Hi
Try this
trigger CopyingStatusToCustopicklist on Lead(before insert) {
for(Lead lead :Trigger.new){
lead.CustomPicklist__c = lead.Status;
}
}
Did this post solve your problem If so please mark it solved otherwise let me know about your Issue.
Thanks
asish