Copy Creator file field to CRM file field.
Hello,
I am trying to transfer the content of a Zoho Creator record afer form submission to a new CRM deal record with a deluge form worklfow.
I am trying to see of I can transfer the files fields.
- creationMap = Map();
- if(Revendeur == "IEL Technologie agricole" || Revendeur == "Les Equipements Avipor Ltee")
- {
- creationMap.put("Account_Name",input.Revendeur);
- }
- creationMap.put("Deal_Name",input.Nom_de_l_affaire);
- creationMap.put("Closing_Date",input.Date_realisation);
- creationMap.put("Pipeline",input.Pipeline);
- creationMap.put("Expected_Delivery_Date",input.Date_realisation);
- creationMap.put("Stage",input.etape);
- creationResponse = zoho.crm.createRecord("Deals",creationMap);
- info creationResponse;
- if(Factures != null)
- {
- creationRespondeid = creationResponse.getJSON("id");
- attachFactures = zoho.crm.attachFile("Deals",creationRespondeid,input.Factures.tofile(input.Factures));
- info attachFactures;
- }
I try this but this not work, I have an error on the filetype that is string, but I need a file.
But I cannot create or use a connection for Zoho Creator in Zoho Creator...
Did you have an idea to perform it ?
Thanks for your help !