HOW TO SELECT MULTIPLE VALUES IN ENUMS IN D365 CODE
Below code is used to select multiple enum values in a while loop via a container..
SalesTable salesTable;container con = [SalesType::Sales, SalesType::ReturnItem];while select SalesId from salesTablewhere salesTable.SalesType in con{Info(salesTable.SalesId);}
THanks,Vikas Mehta.
And if you want to exclude record in container, you should write where !(salesTable.SalesType in con)
ReplyDelete