How can i SELECT DISTINCT IN X++ select statment

 How can i SELECT DISTINCT records from table  IN X++ select statment?



Ans : Use ‘GroupBy’ in the select statement which field you want the distinct records.


ex:

     while select  * from  tablename group by tablename.fieldname

        {

            

        }

Comments

Popular posts from this blog

How to Create a wizard in x++ d365

X++ code to CREATE AND POST A TRADE AGREEMENT IN MICROSOFT DYNAMICS 365 in D365 F & O

x++ code to submit and approve and reject the invent movement workflow in d365 F&O