Discussions
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');