Sum of Found Set Using Script

Discussion created by nexgen on Jul 6, 2017
Latest reply on Jul 6, 2017 by nexgen

I am trying to calculate the sum of a found set using a script.


The way I'm doing is:


Use the perform find to find the required records.

sort the records using the field required


Then use: GetSummary(summaryfield; breakfield)


However it's outputting wrong data.


What I might have done wrong?