Create product record

Create product record

Hello

I'm sorry, but I'm hoping that someone can help me with a script. I'm still trying to create a Product record. I have a script that seems to be running, but the product (name="test123") isnt created despite the script being executed without errors.

Here is the script:

---
recordValue = {"productName" : "test123", "departmentIds" : [ "departmentId", "departmentId" ]};
response = zoho.desk.create(OrgId, "products", recordValue, "desk_connection");
---

Am I doing something wrong? I hope I didnt accidently create an orphan in the database by running this.