Create task with custom functions.

Create task with custom functions.

I'm creating a task with a custom functions using the next code.

void workflowspace. Bloquear_Tarjetas ( int Dispositivo_ID  
Dispositivo_Resp = zoho.crm.getRecordById( "custommodule2" , input.Dispositivo_ID ) ;
if ( ((Dispositivo_Resp.get("Bloquear Dispositivo")).toString() == "true") )
{
    FBloqueo = (zoho.currenttime + '0W:0D:9H:0M:0S') ;
    RS = zoho.crm.updateRecord( "custommodule2" , input.Dispositivo_ID.toString() , { "Fecha Bloqueo" : FBloqueo, "Estado" : "Bloqueado" } ) ;
    RS2 = zoho.crm.create( "Tasks" , { "Task Owner" : "FRANCISCO BORREGO CONTRERAS","Subject" : "BLOQUEO TARJETA","Due Date" : FBloqueo,"CustomModule2" : (Dispositivo_Resp.get("Nombre de Dispositivo")).toString(),"Status" : "Completed","Priority" : "Alta","Send Notification Email" : true,"Description" : (Dispositivo_Resp.get("Motivo del Bloqueo")).toString()} , 2) ;


With the map line "CustomModule2" : (Dispositivo_Resp.get("Nombre de Dispositivo")).toString() ; I want relate the task with a CustomModule called Dispositivos, but doesn't work.

Can you explain how can I fix it.

Thank you very much for your quick answer.

Regards,

Paco