Dears, Good day to you all,
I'm creating a Query (Type API) with AL. Business Central Cloud
I want to group by the G/L Account No., Date, Global Dim1 , and Glob Dim 2
I searched but it's not clear how to achieve that in the Docs by MS, I did not know how and where to add my SQL query in the Query Object.
Query Totals and Grouping - Business Central | Microsoft Learn
SELECT Customer."No.", Customer.Name, SUM("Sales Line".Quantity) FROM Customer INNER JOIN "Sales Line" ON Customer."No." = "Sales Line"."Sell-to Customer No." GROUP BY Customer."No.", Customer.Name