Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Question

When searching the product extensions Product Extensions (or product master), it would be sometimes useful to be able to calculate SUM or AVG of certain columns. I.e., we need to make a Group By for api.find(). Is that possible?

...

hiddentrue

...

Answer

One of the variants of api.find() has a parameter where you can define which columns you want to summarize.

See the API documentation.