Custom function to copy info from Potential to Accounts

Custom function to copy info from Potential to Accounts

Hi,

So I have in my Deals (previously named potential) two fields, both are Picklist type.

During the conversion stage, my people are updating those two Picklist, one is named ''DMS Service'' the second ''DMS Sales''.

By default they are set with ''-'' value.

I'd like a custom function that when, the picklist is updated with one of the 10 others choice available, it's update another picklist named the same ("DMS Service" and "DMS Sales") but in the Account module.

Note that in my Deals, the ''Account Name" is mandatory, so my sales team have no choice to link an existing account with a deal.

And I'm having lot of difficulties to write the proper code in the custom function place. Once the code would be written, I'm pretty sure to be OK to build the workflow based on a field update.

If anyone can help me that would be great!

Thank you all,