function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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?

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:

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)


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