You need to sign in to do that
Don't have an account?
![Nancy Rodriguez 4 Nancy Rodriguez 4](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Email Message Validation in Lead Object
Hi,
My organization have an issue with manual's emails been sent with the incorrect "From Address" and we need to have a validation rule to prevent this human error from keep happening. I looked at the Email Message Validation Rules but it cannot be done because it doesn't have the "RelatedTo" lookup field. I used the ParentId field but it seems that this is only getting populated with the "Case" object. Below the validation I tried to do, and I need to find a workaround.
&&
or(
and(ISPICKVAL(Parent.Lead__r.field,'one'),FromAddress != 'one@test.com'),
and(ISPICKVAL(Parent.Lead__r.field,'two'),FromAddress != 'two@test.com')
)
Looking around traiblazer communities suggested a trigger, but I don't see the Lead object listed as a related object in the "RelatedTo" field.
I need to validate the "From Address" for the email to be sent to a Lead based on a specific picklist value of the record, any sugestion how to acomplish this?
Thanks,
My organization have an issue with manual's emails been sent with the incorrect "From Address" and we need to have a validation rule to prevent this human error from keep happening. I looked at the Email Message Validation Rules but it cannot be done because it doesn't have the "RelatedTo" lookup field. I used the ParentId field but it seems that this is only getting populated with the "Case" object. Below the validation I tried to do, and I need to find a workaround.
&&
or(
and(ISPICKVAL(Parent.Lead__r.field,'one'),FromAddress != 'one@test.com'),
and(ISPICKVAL(Parent.Lead__r.field,'two'),FromAddress != 'two@test.com')
)
Looking around traiblazer communities suggested a trigger, but I don't see the Lead object listed as a related object in the "RelatedTo" field.
I need to validate the "From Address" for the email to be sent to a Lead based on a specific picklist value of the record, any sugestion how to acomplish this?
Thanks,
I haven't been able to connect the Lead object to the Email Message object, I'm in need of a solution here.
Thanks!