How to use Quoted/Invoiced_Items custom fields APIs in Deluge ?
Hi,
I'm trying to do a function to create an invoice from my existing quote, but I can't use some datas in the mandatory Quoted_Items Subform as it's from custom fields I've created and it's available only using APIs V2.1.
So I tried what I found in the Zoho CRM Apis documentation for this version, using invokurl. I can successfully get the datas I was looking for, but I fail to put it in my invoice.
I tried to directly create the invoice :
res1 = invokeurl
[
type:POST
parameters:parameters
connection:"workdrive_crm"
];
info res1;
Or to update the invoice already created :
res1 = invokeurl
[
type:PUT
parameters:parameters
connection:"workdrive_crm"
];
info res1;
But in every cas I have the same error : {"code":"INVALID_DATA","details":{"expected_data_type":"jsonobject"},"message":"body","status":"error"}
Which I can't understand, my parameters are a map and I use only jasonobjects. I don't know what do to !
I even tried this : response = zoho.crm.updateRecord("Invoices",invoiceid,updateInvoice); and then I have the errors :
- {"code":"INVALID_MODULE","details":{},"message":"the given module is not supported in api","status":"error"}. I can't believe Invoices aren't a valid module...
Anyone has an idea ? Thank you :)