I'm new in dynamics365 programming, I want to store in any variable the result of this query:
the tables are: InventDim id; InventTrans it;
while select sum(qty) from it
where (it.ItemId == "OL-1500") || it.ItemId == "OL-1000"
join id
group by inventBatchId
where id.InventDimId == it.InventDimId
How I can achieve that?