NetSuite FastTrack Toolkit (NFT) - v8.0.0
    Preparing search index...

    Function nsQueryResult2obj

    • Rudimentary conversion of a NS query result to a simple flat plain javascript object. Suitable as an argument to map()

      Type Parameters

      • T = {}

      Parameters

      • r: Result

        the query result to process

      Returns T

      a simple javascript object representation of the query result as type T.

      T declares the shape of the plain objects returned. e.g. nsQueryResult2obj<{ companyname, memo }> for a query that has columns companyname and memo. Including an optional type here ensures strong typing on followup chained method calls.


      Seq(LazyQuery.from({query:'string'}).map(nsQueryResult2obj()).forEach(...)