You need to sign in to do that
Don't have an account?
Paula Jarvis 4
Why does Trigger result in an ID and not a value?
I have this trigger that basically works however the results provided in the field are an ID and not an actual pick list value. How can I amend this to get the same lookup value to populate the pick list field when the Lookup field is edited?
trigger EMRSystem on Lead (before insert, before update) {
{
for (Lead a : Trigger.new)
{
a.EMR_System_1__c = a.EMR_System_Confirmed__c;
}
}
}
trigger EMRSystem on Lead (before insert, before update) {
{
for (Lead a : Trigger.new)
{
a.EMR_System_1__c = a.EMR_System_Confirmed__c;
}
}
}
You don't need to use a trigger for this, also i am not sure if i understand what you're asking.
Are you saying that after the trigger runs a.EMR_System_Confirmed__c shows a ID in string form?
Is a.EMR_System_Confirmed__c setup as a Text field? If so, you will need to change it to a Lookup field.