How to load record and setfield value in Netsuite

setDate : function(cust_id, dateTime){
    
        var obj = nlapiLoadRecord('customrecord_shopify_login_data', cust_id);
        obj.setFieldValue('custrecord_autofill_date', dateTime);
        nlapiSubmitRecord(obj, true); 
        // id is internal id and data is the value load ..
        
    }

Popular posts from this blog

What are sales territory in Netsuite?

How to get and set a sublist in netsuite suitlet suitescript 2.0