Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
Price Levels
Is there a way to access price levels from a script? I am trying to assign a price level to a customer based on the partner they are associated with. I have 2 problems:
1) I can't seem to create a custom field for partners of type price list
2) I can't access the price list from a script. Below is the code trying to access the price list:
// filter out all customer records that don't have the promo code value from the sales order var filters = new Array(); filters[0] = new nlobjSearchFilter('name', null, 'is', custentitypricelevel); var searchresults = nlapiSearchRecord('pricelevel', null, filters, null); 0