Check out Oracle NetSuite upcoming events and conferences here
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Update your Profile with your Support type to get your Support Type badge.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Discover NetSuite's potential! Join our webinars, learn from experts, and optimize your operations. Whether you're experienced or new, secure your spot today and stay ahead in NetSuite!
Share with colleagues and friends who could benefit from our webinars too!

Slaes Order Field Change

Hello Everyone, I have created the script below to set price at sales order level as the the lines are added. However it does not trigger.

The Purpose of the script is to set the price level of each line in a dynamic fashion by comparing against the price level selected in body of the sales order. The Sales order body field is using a custom record list.

 function validateLine(scriptContext) {

    var currentRecord = scriptContext.currentRecord;

   var sublistName = scriptContext.sublistId;

  var sublistFieldName = scriptContext.fieldId;

    var price_Level = currentRecord.getValue({

      fieldId: 'custbody_price_level'





    if(sublistName == 'item' && sublistFieldName == 'price'){


      var count = currentRecord.getLineCount({

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!


Community Whiz

Quarter 1 (Jan-Mar 2024)

This Week's Leaders

This Month's Leaders

All Time Leaders