Set Text value for list/record fields along with values using submitFields

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

                    }

                });

Leave a comment

Your email address will not be published. Required fields are marked *