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
Ishan Singh 4Ishan Singh 4 

Fetching data from account object to lead object.

I have created a field(lookup on account) on lead object to select account name. What I want to do is when I select a particular account name in that lookup field then 2 fields(let it be X and Y) which are on account their data should come in leads 2 fields(Lets say A and B) .  
CharuDuttCharuDutt
Hi shan Singh 
for this you have to make a formula field on lead object
try the following code
in this i have an xyz object in it i have contact lookup
i'm filling contacts first name in formula field type text in xyz object





ContactName__r.FirstName

Please Mark it As Best Answer If it Helps
Thank you.
Ishan Singh 4Ishan Singh 4

Hey Charu,

Already tryied it, the formula field is not working. 

CharuDuttCharuDutt
Hii Ishan Singh
it's working in mine
Ishan Singh 4Ishan Singh 4

I have created a lookup field type on lead object having "account"  in related object.  
I am using Account__r.X as formula field.
Is their anything else I need to do?

CharuDuttCharuDutt
No Just  put
Account__r.fieldName
Please Mark it As Best Answer If it Helps
Thank you.