Using Deluge scripting to create/update data in TabularSections
I am having following Form structure with some other usual fields, and a tabular section which allows putting question, self rating and lead rating. (pic below)
I am trying to create a record of this form via Deluge, but can't figure out way to populate records in Tabular Sections. Following is my sample code
- updatedPerfReview = Map();
- diffsNew = List();
- diffsNew.add({"Lead_Client_Rating":"4","Question":"Is Skilled For Job?","Self_Rating1":"5"});
- tabSecs = Map();
- // Difference is the Tabular Section heading, which is coming back in JSON as well
- tabSecs.put("Differences", diffsNew);
- updatedPerfReview.put("tabularSections", tabSecs);
- info zoho.people.create("Performance_Review", updatedPerfReview);
Any help appreciated here.