Subform Next Row

Subform Next Row

Hello,

I'm trying to add a crm subform into zoho writer with a custom function. For my test, there are 3 entries in the crm subform. My issue is when the data gets pulled into pdf writer, I have 3 rows in my PDF, but it's the same row/data 3 different entries

Below is what I have

corelist contains the crm subform that's going to the writer subform CoreValues



corevaluelist = List();
cvdetails = Map();
for each  entry in corelist
{
    cvdetails.put("CoreValues.corev",corelist.getJSON("Core_Value"));
    cvdetails.put("CoreValues.definition",corelist.getJSON("Definition"));
    corevaluelist.add(cvdetails);
}


Does anyone know how to add the next row of the subform to my corevaluelist?

Thanks you!