Upload Zoho Inventory Item Image by API
Upload Zoho Inventory Item Image by API
itemID = item.get("item_id");
organizationID = organization.get("organization_id");
resvp = zoho.inventory.getRecordsByID("items",organizationID,itemID,"zoho_inventory_conn");
info resvp;
image_file = invokeurl
[
url: "
https://t4.ftcdn.net/jpg/03/13/59/81/360_F_313598127_M2n9aSAYVsfYuSSVytPuYpLAwSEp5lxH.jpg"
type: GET
connection:"zoho_inventory_conn"
];
image_file.setParamName("image");
image_form = Map();
image_form.put("image_name",image_file);
itemID1 = "2755065000003663509";
response = invokeurl
[
url : "
https://inventory.zoho.com/api/v1/items/"
+ itemID + "/image?organization_id=" + organizationID
type: POST
files:image_file
connection:"zoho_inventory_conn"
];
info response;
Thanks & Regards
Piyush Goyal
LinkedIn
Zoho Developer || 3+ years Experience
+91-8619164837