I am already using it in some of my forms.
var saved_preAppointment = record.submitFields({
type: 'customrecord848',
id: preApptId,
values: {
custrecord_appointment: arr_appointments
},
options: {
enableSourcing: false,
ignoreMandatoryFields : true
}
});
The key here was forming the array. If the array is formed by using array.push(values); Then this works fine. Else, there are certain problems I encountered. That's AFA I went.