Google Drive API integration - request body - invokeurl

Google Drive API integration - request body - invokeurl

Hi,

I am accessing Google Drive API (documentation at https://developers.google.com/drive/api/v3/reference/files) through Zoho CRM. This is working fine, using commands like the following, which pull a Google Drive folder reference from the Contact, and returns a list of files inside that folder:

mapParameters.put("q","'" + Contact.get("gdriveextension__Drive_Folder_ID") + "' in parents and (name contains 'foo' or name contains 'bar') and trashed = false");
mapParameters.put("supportsTeamDrives","true");
mapParameters.put("teamDriveId","xxxxxxx");
fileList = invokeurl
[
url :gdriveURL
type :GET
parameters:mapParameters
connection:"googledrive19"
];


However, for some of the API functions, such as renaming files, information needs to be passed in the request body. So for example, the body needs to look like this:

{
     "name":"newname"
}

How do I pass request body information, through the Zoho invokeurl command? (Using "files: someJSONThing" as may be implied by the Zoho docs at https://www.zoho.com/deluge/help/deluge-invoke-url.html doesn't seem to work.)

Thanks.
    • Sticky Posts

    • Function #41: Sync Associated Subforms!

      Welcome back everyone! The last custom function showed how to update a Contact with Product details from it's Related list in Deals. This week, let's look at a function that lets you update subform records in two modules simultaneously when one of them is updated. Business scenario Let's look at how subform helps in an education institution that has deployed Zoho CRM. National Public School, Austin (made up, of course!) has set up Zoho CRM and it follows the same relationship pattern of "Students",

      Zoho SalesIQ Resources



            Zoho TeamInbox Resources

              Zoho DataPrep Resources


                  Zoho CRM Plus Resources

                    Zoho Books Resources


                      Zoho Subscriptions Resources

                        Zoho Desk Resources

                          Zoho Projects Resources


                            Zoho Sprints Resources


                              Qntrl Resources


                                Zoho Creator Resources


                                  Zoho WorkDrive Resources




                                      Zoho Campaigns Resources

                                        Zoho CRM Resources

                                                    Design. Discuss. Deliver.

                                                    Create visually engaging stories with Zoho Show.

                                                    Get Started Now


                                                      Zoho Show Resources


                                                        Zoho Writer Writer

                                                        Get Started. Write Away!

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

                                                                  有料プランをご利用の方