I am trying to check if any custom field other that email can be used in email alert action of the workflow . Do anyone knows about it?


Assuming you are talking about Email Alerts, as shown in the picture, the 'additional to' field must be constant values

enter image description here

To provide dynamic email recipients, you either have to:

  • Refer to Recipient Type / Recipients field values on the target object of type Email, or a predefined set of related object email values based on the target sobject type (like RelatedContact on Case)

  • Use Apex Outbound Email Services

If you have text fields on your object that are not of type email, then you'll need to sync them to a non-visible field of type Email using a workflow or process flow Field Update on 'create and every edit'. This will give you a field of type Email available to select from in the Email Alert Recipients picklist.

For lookup fields to other objects, this is more problematic as you have to get the value of the lookup object field into a field of type Email on the target object. You'll need process flows on both the target object (to copy in the value from the lookup object) on create, and, a process flow on the lookup object to copy in the value to all target object children whenever the lookup object changes. Fortunately, process flows allow update of children via Field Update; Workflows do not.

  • Thank you for your reply. Yes.I am talking about same Email-alert action.What i am trying to is, I want add value of text custom field or lookup custom field to the recipient of this email-alert. But i dont know how to do that as i am very much new in sales force. I can only add new email field here.no text or lookup field Br, Shama
    – user31062
    Apr 28 '16 at 5:43
  • @shama - I updated my answer
    – cropredy
    Apr 28 '16 at 15:19

Are you referring to these Email Alert Actions? If so, you could include custom fields in the Email Template your using.

Please try and add more information to the question so everyone has a better understanding of the problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.