Deluge Help - Lookup Fields

Deluge Help - Lookup Fields

Hi There,

I am trying to get the text value of the lookup field Destination and put it into the text field of Destination_Analytics but cannot seem to grab the destination lookup field text value.
  1. rec = zoho.crm.getRecordById("Leads", recid);
  2. des = rec.get("Destination").Name; 
  3. mp = map();
  4. mp.put("Destination_Analytics", des);
  5. update = zoho.crm.updateRecord("Leads", recid, mp);