How to use Quoted/Invoiced_Items custom fields APIs in Deluge ?

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 :) 

    • Sticky Posts

    • Kaizen #217 - Actions APIs : Tasks

      Welcome to another week of Kaizen! In last week's post we discussed Email Notifications APIs which act as the link between your Workflow automations and you. We have discussed how Zylker Cloud Services uses Email Notifications API in their custom dashboard.
    • Kaizen #216 - Actions APIs : Email Notifications

      Welcome to another week of Kaizen! For the last three weeks, we have been discussing Zylker's workflows. We successfully updated a dormant workflow, built a new one from the ground up and more. But our work is not finished—these automated processes are
    • Kaizen #152 - Client Script Support for the new Canvas Record Forms

      Hello everyone! Have you ever wanted to trigger actions on click of a canvas button, icon, or text mandatory forms in Create/Edit and Clone Pages? Have you ever wanted to control how elements behave on the new Canvas Record Forms? This can be achieved
    • Kaizen #142: How to Navigate to Another Page in Zoho CRM using Client Script

      Hello everyone! Welcome back to another exciting Kaizen post. In this post, let us see how you can you navigate to different Pages using Client Script. In this Kaizen post, Need to Navigate to different Pages Client Script ZDKs related to navigation A.
    • Kaizen #210 - Answering your Questions | Event Management System using ZDK CLI

      Hello Everyone, Welcome back to yet another post in the Kaizen Series! As you already may know, for the Kaizen #200 milestone, we asked for your feedback and many of you suggested topics for us to discuss. We have been writing on these topics over the