How to Use X++ to write SQL statements

 insert_recordset :


statement can insert multiple records by copying the records from one table and inserting them into another.


Ex:


insert_recordSet myTable (myNum)

select myNum

from anotherTable;



update_recordset :


 Used to update multiple records at the same time.


Ex:


update_recordset salesLine

setting unitPrice = 10

where salesId =='S0001';


delete_from:



Used to delete multiple records at once with the delete_from statement.

Comments

Popular posts from this blog

How to Create a wizard in x++ d365

how to post trade agreement journals automatically using x++ code

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