NetSuite SuiteQL columns to text via LISTAGG
If you want to see all item fulfilments for a sales order on one line versus a row for each:
In our example Sales Order 2193 has Items fulfilled on IF 47 and IF 71. Starting with
We will get 2 rows
- IF47
- IF71
Now we want these in one text result in one row. We will use Oracle’s List Aggregator function LISTAGG
We can wrap the sample query above as follows:
Now the result is
- “IF47, IF71”
This can be powerful to show lots of data brought from many linked tables on one row for an entity or transaction.