+ Start a Discussion
Simran SuriSimran Suri 

Pre-populate custom picklist field on contact from account's custom field while creating a contact

Hi,
I have a custom picklist field - Country on both Contact & Account objects. Whenever a related contact is created from account, I want to prepopulate the value of Country from the Account on the contact object. As I am new to development, I would appreciate an elaborated guidance. Thanks in advance !
Best Answer chosen by Simran Suri
Dilip_VDilip_V
Hi Suri,

Here you can create process builder.
https://help.salesforce.com/HTViewSolution?id=000231395

Let me know if it helps.

Make it as best answer if it helps.

Thanks.
 

All Answers

Dilip_VDilip_V
Hi Suri,

Here you can create process builder.
https://help.salesforce.com/HTViewSolution?id=000231395

Let me know if it helps.

Make it as best answer if it helps.

Thanks.
 
This was selected as the best answer
Simran SuriSimran Suri
Hi @Thermo Dynamics,
It worked ! Thanks a lot :)
Mahesh K 22Mahesh K 22

Using Trigger We can Solve this senario:

Write trigger on account ObjectTrigger accounttrigger on account(after insert){
   account acc = Trigger.New;
    contact con;
    for(account a : acc){
        contact c = new contact ();
        c.Lastname = a.name;
        c.country__c = a.country__c;
        c.accoutid = a.id;
        con.add(c);
    }
    insert con;
}