mooseymoose's Profile
Rookie
5
Points

Questions
1

Answers
1

  • Rookie Asked on May 8, 2024 in SuiteScript.

    Allocated Demand is joined to transactionLine, not sure Main Line = true  would work.

     

    Try SuiteQL:

    const QUERY_RESULTS = query.runSuiteQL({
    query: `
    SELECT
    transaction.tranid,
    allocatedDemand.order
    FROM
    transaction
    LEFT OUTER JOIN transactionLine ON transaction.id = transactionLine.transaction
    LEFT OUTER JOIN allocatedDemand ON transactionLine.id = allocatedDemand.tranline
    WHERE
    transaction.id = '${recordId}'
    `}).asMappedResults(); // runs the query and converts to an array of objects
    

    https://<accountid>.app.netsuite.com/app/recordscatalog/rcbrowser.nl?whence=#/record_ss/transaction/transactionLines?fieldId=allocatedDemand

    • 1040 views
    • 1 answers
    • 0 votes