Add Image in zoho books Item API

Add Image in zoho books Item API

Hello Team,

Please find below the code for uploading images to Zoho Books items using the API. Kindly review it.
  1. itemID = item.get("item_id");
  2. organizationID = organization.get("organization_id");
  3. GetItemDetails = invokeurl
  4. [
  5. url :"https://www.zohoapis.com/books/v3/items/2755065000008594950?organization_id=" + organizationID
  6. type :GET
  7. connection:"zohobooks"
  8. ];
  9. GetImage = invokeurl
  10. [
  11. url :"https://www.dotsquares.com/img/uploads/blogs/newly-ds.jpg"
  12. type :GET
  13. ];
  14. GetImage1 = invokeurl
  15. [
  16. url :"https://www.dotsquares.com/img/uploads/blogs/Sales-1-1-1-1.png"
  17. type :GET
  18. ];
  19. GetImage1.setParamName("image");
  20. GetImage.setParamName("image");
  21. imagelist = List();
  22. imagelist.add(GetImage1);
  23. imagelist.add(GetImage);
  24. mp = Map();
  25. mp.put("image",GetImage);
  26. GetItemDetails1 = invokeurl
  27. [
  28. url :"https://www.zohoapis.com/books/v3/items/"+item_ID+"/images?organization_id=" + organizationID
  29. type :POST
  30. files:imagelist
  31. connection:"zohobooks"
  32. ];
  33. info GetItemDetails1;

Thanks & Regards
Piyush Goyal
Zoho Developer || Zoho Creator & CRM Certified
+91- 8619164837




                            Zoho Desk Resources

                            • Desk Community Learning Series


                            • Digest


                            • Functions


                            • Meetups


                            • Kbase


                            • Resources


                            • Glossary


                            • Desk Marketplace


                            • MVP Corner


                            • Word of the Day



                                Zoho Marketing Automation


                                        Manage your brands on social media



                                              Zoho TeamInbox Resources

                                                Zoho DataPrep Resources



                                                  Zoho CRM Plus Resources

                                                    Zoho Books Resources


                                                      Zoho Subscriptions Resources

                                                        Zoho Projects Resources


                                                          Zoho Sprints Resources


                                                            Qntrl 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

                                                                    





                                                                    




                                                                        Design. Discuss. Deliver.

                                                                        Create visually engaging stories with Zoho Show.

                                                                        Get Started Now