How to load record and get Field value in Netsuite

    getDate : function(){
        
        var currentDate = new Date();
        var epoch = currentDate.getTime()-1800000;
                 
        var internal_id = request.getParameter("internalid");
        var obj = nlapiLoadRecord('customrecord_shopify_login_data', internal_id);
        var values = obj.getFieldValue('custrecord_autofill_date');
    
        return values;
        

    }

Popular posts from this blog

What are sales territory in Netsuite?

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