Question about getting a lookup field value from Contacts Module and updating a Lookup field in the Potential Module

Question about getting a lookup field value from Contacts Module and updating a Lookup field in the Potential Module

I have a custom function for the Potentials Module its gets values from the Contact Module and Updates the new Potential with the values from the Contact Module.

I have one new value I want to pull from the Contact Module with is a lookup field. I would think the value is a string but it appears it is not. I can't seem to pull the value over.

Here is the custom functions code.



void UpdatePotentialsModule ( int potentialId   string leadSource   date dateOfEvent   string eventLocation   string eventLookup  )
potentialIdStr=input.potentialId.toString();
mp=map();
mp.put("Lead Source",input.leadSource);
mp.put("Date of Event",input.dateOfEvent);
mp.put("Event Location",input.eventLocation);
mp.put("Event Lookup",input.eventLookup);
updateResp = zoho.crm.updateRecord("Potentials",potentialIdStr,mp);

I could really use some help, I'm not that familiar with Deluge Script so I have no idea how to fix this.

The value in the Contact's Lookup field is the following "Biolase Baltimore, MD 073115".

Can someone please advise on why I can pull the Lookup fields data from the Contact and update the same lookup field inside the Potential?

Thanks for all your help and support!

Thomas Pursifull