Custom function to update identical multi-select fields across related modules

Custom function to update identical multi-select fields across related modules

I'm trying to write a custom function utilizing the guides within Zoho Help, but I'm not having much luck.

I want to write a function to include in a workflow that effectively takes the values in a multi-select field from the Accounts module and updates an identical field in all child Contacts for that Account.

Both the Accounts Module and the Contacts Module contain a multi-select list field called "Account Products" with options like "Medical", "Dental", "Vision", "Payroll", "Timekeeping", etc.

Can anyone help me with the appropriate custom function to update the multi-select list in "Contacts" when it is updated in "Accounts"?

Thanks!!