Specifc value from lookup field

Specifc value from lookup field

I have a lookup field from standard module (Campaigns). In the record of one register in the module campaigns, I select one value (support name) from a custommodule (support or CustomModule1).

I have another custom module (trazador or CustomModule10) when I have a lookup field from campaigns. In this module I need get the string value of "support name" when I pic any record of lookup Campaigns but when I try to pic the value "support name", I get the ID of the "nombre soporte" instead of the string value "support name".

  1. void Untitled_Function67 (int idTraza,  string num_traza,  string nom_soporte,  string nom_medio,  string campana,  string url_landing )
    id_Traza=input.idTraza.toString();
    nom_Campania=replaceAll(input.
    campana," ","_");
    nom_Campania2=replaceAll(
    nom_Campania,"/","-");
    url_t_landing=input.url_landing + "/?o=" + input.num_traza + "&utm_source=" +
    nom_soporte + "&utm_medium=" + input.nom_medio + "&utm_campaign=" + nom_Campania2;
    rspCRM = zoho.crm.updateRecord("CustomModule10",id_Traza,{ "Soporte" :
    nom_soporte, "Landing trazada" : url_t_landing });


When I see that I have the ID of de support instead of the name I try this, but I don't have any value.

  1. void Untitled_Function67 (int idTraza,  string num_traza,  string nom_soporte,  string nom_medio,  string campana,  string url_landing )
    id_Traza=input.idTraza.toString();
    idSoporte=input.nom_soporte.toLong();
    soporte = zoho.crm.getRecordById("CustomModule5",idSoporte); //Here I try to find the record by transform the string value (the number that I have) to a integrer in the custom module
    nomb_soporte=soporte.get("Nombre de Soporte"); //Here is when I try to pic an specific value of the previus record
    nom_Campania=replaceAll(input.campana," ","_");
    nom_Campania2=replaceAll(nom_Campania,"/","-");
    url_t_landing=input.url_landing + "/?o=" + input.num_traza + "&utm_source=" +
    nomb_soporte + "&utm_medium=" + input.nom_medio + "&utm_campaign=" + nom_Campania2;
    rspCRM = zoho.crm.updateRecord("CustomModule25",id_Traza,{ "Soporte" : nomb_soporte, "Landing trazada" : url_t_landing });

but I can't get the value.

Anyone have any idea?