Autofilling fields in Contact module with data from other modules and fields.

Autofilling fields in Contact module with data from other modules and fields.

Hello,

I am dealing with a request to create autofilling functions for my companies Contact module, using data derived from our Accounts module and have run into a few issues.

Note: The Account lookup field is present in the Contacts module.

1. We have a custom Industry field in both the Accounts and Contacts modules. These are both pick list fields, which were made at separate times and may have slight variation in their lists that have built up over time. The function I used to autofill the Industry field is included below:

mp = Map();
mp.put("Industry",Industry);
update = zoho.crm.updateRecord("Industry",contId.toLong(),mp);
info mp;
info update;

2. I am attempting to autofill the Contact phone with the Account phone. Issue is that Account phone into unused fields and replaced it with a new Billing Phone field. So I am trying to fill in the Contact Phone with a custom field in the Accounts module called Billing phone. I don't know how to write a function for that.

3. An account short name field has been requested, with a simplified version of the account name to be used in emails to then autofilled into related contacts for use in emails. Management wants a function programed in order to create the account short name in all present accounts then copy the short name over into a custom account shortname field in the contacts module. I don't even know where to start with this one.

Thank you for your time.