Creating record in Zoho CRM and upload file

Creating record in Zoho CRM and upload file

Hi,

I'm stuck on this issue, and I don't find the problem.

i have a Zoho creator form with several fields :

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.

Here my code :

//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...

Thanks a lot for your help,


      • Sticky Posts

      • How to Add Users to your Organization in ZohoMail?

        A better clarity so you can create other users to start using Zoho Mail. You can directly Add Users from the Control Panel to your Organization. You can invite users with the existing email address. If the person (user) already uses ZohoCRM, then you can import users from Zoho CRM. You can also import them using a .csv file. (if you are planning to add them in Bulk)  In this topic, We will be discussing on how to Add and Invite users only.  The Import options are self explanatory. ____________________________________________________________________________________________________________