record.submitFields({
type: ‘customrecord_grw019_loanrepayrec’,
id: idRepayRec,
values: {
custrecord_grw017_loanrepayrec_nmbr: betNo,
custrecord_grw017_loanrepayrec_intrstpar: interest,
custrecord_grw017_loanrepayrec_cappart: principalAmount,
custrecord_grw017_loanrepayrec_total: totalOfPayment,
custrecord_grw017_loanrepayrec_loanid: loanRecordId
},
texts: {
custrecord_grw017_loanrepayrec_calyear: calendarYear,
custrecord_grw017_loanrepayrec_calmonth: calendarMonth,
},
options: {
enableSourcing: true,
ignoreMandatoryFields : true
}
});