General X++ Development
How do I use `notexists join` in X++?
How do I use notexists join in X++?
1 answer
Write an answerUse notexists join when you want records that do not have a related record.
CustTable custTable;
SalesTable salesTable;
while select custTable
notexists join salesTable
where salesTable.CustAccount == custTable.AccountNum
{
info(custTable.AccountNum);
}This is cleaner than selecting everything and then checking for missing related records in X++.
Know the solution?
Sign in to contribute an answer and build your community reputation.
Sign in to answer