This application is linked to Zoho CRM, it creating a ticket in Zoho CRM. Everything works fine, but I can't upload document to Zoho CRM.
//create the CRM vs Creator fields map to push data to the CRM module.
myFieldMap = Map();
//add values to the map. CRM fields first and then Creator fields ( without the quotes ). Creator field’s deluge name is used here.
myFieldMap = Map();
myFieldMap.put("Action_post_traitement","Confirmation mail au Client");
myFieldMap.put("Case_Origin","Site Internet");
myFieldMap.put("Priority","- de 72 h.");
myFieldMap.put("Status","Ouvert");
myFieldMap.put("Num_ro_Client1",input.Num_ro_Client);
myFieldMap.put("Nom_et_Pr_nom",input.Pr_nom_et_Nom);
myFieldMap.put("Phone",input.T_l_phone);
myFieldMap.put("Email",input.Email);
myFieldMap.put("Cat_gorie_de_demande",input.Action_effectu_e);
myFieldMap.put("N_BRT",input.N_de_BRT);
myFieldMap.put("N_Facture",input.N_de_Facture);
myFieldMap.put("Immatriculation",input.Immatriculation);
myFieldMap.put("Description",input.Commentaire);
myFieldMap.put("Subject",input.Action_effectu_e);
myFieldMap.put("Attachment",input.T_l_charger_votre_fichier);
//function to push data to CRM
crmResponse = zoho.crm.createRecord("Cases",myFieldMap);
If I use this code
<
response
>
=
zoho
.crm.attachFile
(
<
module
>
,
<
record_id
>
,
<
file_object
>
)
;
It works, but I get another issue, I can't get my record ID on importation...