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
Chuck DeMossChuck DeMoss 

How do I connect two picklists, one in Opportunity, one in Accounts?

I would like to connect two fields, one in Accounts, and the other in Opportunity. So if I change the opportunity field, I will have the same changed value in the Account field, and vice versa. I would like to do this with two picklists. Please help.
pconpcon
You will need to write a trigger on the objects that queries all the associated related objects and then update the records.  If you have any specific issues, please include the code you have written and we can help you with it.

NOTE: When including code please use the "Add a code sample" button (icon <>) to increase readability and make referencing code easier.
Veenesh VikramVeenesh Vikram
To replicate Account field on Opportunity, you can create a formula field.
To replicate Opportunity field on Account, You can use Process Builder.

Regards
Veenesh
Deepak RathinaveluDeepak Rathinavelu
Hi Chuck,

We cannot connect picklists as such but, an account can have more than one opportunities, then a change in account would be reflected in all the opportunities and a change in one opportunity would change the account value. Are you sure this is what you want? A bit of details would be great.

All the best
Deepak Rathinavelu