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
SarahSarah 

Autopopulate look up field using value from another object' field

there is a button named "new item".on clicking the button (to create a new item) we have to fill certain fields. My requirement is " Account" field should be populated automatically based on the value from " Related " Field.
The data type of Account and Related fields are look up.
How can be update the field automatically based on the value entered in other field?
Some one please help me out
Thankyou in advance
Best Answer chosen by Sarah
PriyaPriya (Salesforce Developers) 
Hi Tency,

Can you please refer to the below article which matches you requirement 
https://salesforce.stackexchange.com/questions/225603/populate-a-lookup-field-based-on-another-lookup-in-apex

Hope this is helpful..Please mark this as best answer!

Regards,
Ranjan

All Answers

PriyaPriya (Salesforce Developers) 
Hi Tency,

Can you please refer to the below article which matches you requirement 
https://salesforce.stackexchange.com/questions/225603/populate-a-lookup-field-based-on-another-lookup-in-apex

Hope this is helpful..Please mark this as best answer!

Regards,
Ranjan
This was selected as the best answer
SarahSarah
Thank you priya