Script to create a new record with a subform, and populate data

Script to create a new record with a subform, and populate data

Consider this example



So what would be the code to create a new record?

  1. insert into Class
  2. [
  3.       date_field = zoho.currenttime

  4.       (?)
  5.       insert into Student 
  6.       [
  7.             name = "Billy Bob"
  8.       ]
  9.       insert into Student
  10.       [
  11.             name = "Jane" Doe"
  12.       ]
  13. ];