Monday, January 16, 2023

Select statement examples

 select firstonly salesLine where salesLine.SalesId == salesTableLocal.SalesId
   && (salesLine.SalesStatus !=  SalesStatus::Delivered || salesLine.SalesStatus == SalesStatus::Invoiced)
       && ((salesLine.InventRefType == InventRefType::Production && salesLine.InventRefId != "" &&            prodTable.ProdStatus != ProdStatus::Completed) 
                || (salesLine.TrackingType == TrackingType::Production && !salesLine.Number() &&                              prodTable.ProdStatus != ProdStatus::Completed));

No comments:

Post a Comment

Build Explained

Useful Blogs. https://axtechsolutions.blogspot.com/2018/08/performing-builds-in-d365.html https://community.dynamics.com/blogs/post/?postid=...