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

    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner

                        • Word of the Day

                          Word of the Day


                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner

                        • Word of the Day

                          Word of the Day



                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方