Creator API v2 Add Records - Not adding SubForm data
I have a formula in creator where I am trying to enter a new record into another creator form. All of the fields in the main part of the form pull in without issue but I cannot insert any subform data into a new record, or udpate an existing record using the creator v2 API even though I have everything formatted properly. Has anyone else had this issue? What is it that I am doing wrong?
I have created a test form with just a single line field (called Main_Field), and a subform (called SubForm) with a single line field (called Subform_Field).
This is my code (with the url taken out):
- dataMap = Map();
- formMap = Map();
- subformMap = Map();
- subformList = List();
- subformMap.put("Subform_Field", "Testing");
- subformList.add(subformMap);
- formMap.put("Main_Field", "Testing");
- formMap.put("SubForm", subformList);
- dataMap.put("data", formMap);
- info dataMap;
- testing = invokeurl
- [
- url: "https://creator.zoho.com/api/v2/..."
- type: POST
- parameters: dataMap.toString()
- connection: "zoho_creator"
- ];
- info testing;
and the output:
{"data":{"Main_Field":"Testing","SubForm":[{"Subform_Field":"Testing"}]}}
{"code":3000,"data":{"ID":"4107384000000323365"},"message":"Data Added Successfully"}
However in the record I only see the "Testing" created in the Main_Field, there is absolutely nothing in the Subform_Field.
What am I doing wrong?