Note: We have customized names on our modules: Contacts=Deals, Accounts = Conversions, this creates some confusion because in Deluge you end up referencing both the Customized name and the underlying system name, but I think I kept things straight.
// DName = the Related Contact Variable in Accounts, ConID = the Account record ID,
void workflowspace.CopyDealtoNewConversion2 (string DName, int ConID ) ;
//Convert the Account ID to a string
ConID1 = input.ConID.toString() ;
//Search Contacts for the linked contact and return the record as a list
Resp1 = zoho.crm.searchRecordsByPDC("Contacts" ,"Deal Name" ,input.DName ) ;
//Get data from Contact record list using the <index> and cast the variables
DType = (Resp1.get(34)).toString() ;
DMarket = (Resp1.get(37)).toString() ;
DFrd = (Resp1.get(17)).toString() ;
//Create a map and put the variables in it
CNewMap = map() ;
CNewMap.put("Market",DMarket);
CNewMap.put("FRD",DFrd);
CNewMap.put("Business Name" ,input.DName);
//Tell Zoho to update the new Account record with the Mapped variables in CNewMap
UpdateCon = zoho.crm.updateRecord(("accounts") ,ConID1 ,CNewMap ) ;
Test case: I go into a Contact that has the prerequisite variables filled in (Market, FRD, Business Name), scroll down to the list of related Accounts and click "New" I give the new Account a name and save it, but none of the fields update.
If you can provide any insight I would appreciate it, I'm fairly new to programming and spent several hours in the documentation trying to figure this out. I think I need a second set of eyes.