How to create a new package in Zoho inventory using deluge?
I'm attempting to create a new package in Zoho Creator through deluge by calling the Zoho inventory API. Here's what my code looks like.
- packageMap = Map();
- packageMap.put("package_number","PA-00004");
- packageMap.put("date","02/25/2022");
- lineItemList = List();
- for each item in lineItems
- {
- itemId = item.getJson("line_item_id");
- lineItemMap = Map();
- lineItemMap.put("so_line_item_id",itemId);
- lineItemMap.put("quantity",1);
- lineItemList.add(lineItemMap);
- }
- packageMap.put("line_items",lineItemList);
- newPackage = invokeurl
- [
- url :"https://inventory.zoho.com/api/v1/packages?salesorder_id=2839102000008709273&organization_id=918273645"
- type :POST
- parameters:packageMap
- connection:"packages_oauth"
- ];
Whenever I run this code, I keep getting the same error.
- {"code":4,"message":"Invalid value passed for JSONString"}
Does anyone know why I keep getting this error?
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
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
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.