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.
Returning SUM of Formula Field from Saved Transaction Search
I'm hoping someone can provide some direction:
I need to run a saved transaction search from server side script. The search returns a single value (the sum of a formula field) based on a specific customer 'name'. Search internal id is 24.
Does anyone know what column reference I should be using to expose this sum value to a script variable?
Also - is 'name' the right reference to pass to the saved search to filter the search for the appropriate customer (should I be looking at parameters etc...)?
Here's where I'm at:
function querySOTotal() {
var currentRecord = nlapiGetNewRecord();
internal_id = currentRecord.getFieldValue('entity');
0