I need to update field on Account based on other field in the Contacts module

I need to update field on Account based on other field in the Contacts module

Hi, 
I created 2 custom fields (Pick Lists) in the Accounts and Contacts, i need the field in Accounts to be updated automatically when the fiels on the contacts changed,

i created other field on Accounts which take the value from the custom field by using the following Function which are not working:
{
contDetails = zoho.crm.getRecordById("Contacts",ContId.toLong());
mp = Map();
mp.put(In_Contact_Status02,contDetails.get("Contact_Status"));
updatecompanies = zoho.crm.updateRecord("Companies",AccId.tolong(),mp);
info mp;
info updatecompanies;
}
the function related module is contacts 

then  i was intending to update the picklist on Accounts using workflow when the "In_Contact_Status" is not empty the Pick List changed