+ Start a Discussion
Steve CairneySteve Cairney 

How to add a custom user field to email alert picklist

Hi all,

 

Is it possible to add a custom feild from the user object into the email alert user picklist?

SharathChandraSharathChandra
I didn't understand you question can you explain it.
Steve CairneySteve Cairney

It's related to this post here. If I could choose the custom field in the picklist for the email alert it would be much simpler:

 

http://boards.developerforce.com/t5/Apex-Code-Development/Email-notification-custom-functionality/m-p/651515

SharathChandraSharathChandra
As soon as you create lead and if you are system administrator you will be the owner and email alert will be sent to you.
If you want to hard code the email address you can do that in additional emails field when you create/edit email alert action
Steve CairneySteve Cairney

I can't hard code the email in as it will be decided by the custom field.

 

The process is this, maybe I'm not explaining it correctly

 

On manual lead creation there is a custom field (Lookup(User)) called Phone Lead Owner (see screenshot) http://postimg.org/image/idcrw8sgr/

 

The trigger changes the lead owner to Phone Lead Owner on save.

 

But I can't get the email alert to send to this owner. The lead owner in the picklist sends to the default lead owner