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
affuaffu 

update field

How can we copy email id from person account to any other related object. E.g. Email id from Person account to Opportunity.
Navatar_DbSupNavatar_DbSup

Hi,


Very simple. You can create a formula field on Child object which will store the value of Parent record email.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

affuaffu

Thank u for replying ....

 

I tried the same but couldnt find the email field from person account while creating a formula field in opportunity.

 

Thanku.

AlagarAlagar

Hi,

 

u cant do this with Formula field..

 

create a custom email field and update this field through apex class..

SRKSRK

Account Do not have any standard Field of eamil so if u hava a custom fields as i  have (email__c) just chage the Email__c in below mention formula with the api name of u r email field

 Account.Email__c

SRKSRK

Hi Alagar

plz don't mind but can u explane why it is not possble throw formula field

Thanks

AlagarAlagar

formula fields will not support email values...

 

It support following return types

 

currency,

date ,

number

,text

SRKSRK

U can't edit formula field so u he don't need any validation of email field & he can use "text" to have the value in child

AlagarAlagar

yes u can use text field to update an email value...it will efficient if u have the appropriate data type