Thursday, September 2, 2021

How to get the details of the selected records through x++ in D365 FO


Sometimes we come across a scenario where we need to get the data from the selected records in a form contained in a grid.

For these kind of scenarios MultiSelectionHelper class has always been useful to achieve the same.

Let us look at an example mentioned below : -

MultiSelectionHelper          selectionHelper = MultiSelectionHelper::construct();
Set                           selectedRecords = new Set(Types::Record);
ABCTable                  abcTable;


abcTable  = selectionHelper.getFirst();  

if (abcTable.RecId)
        info(strFmt('Selected record.. %1',abcTable.myField));
        abcTable = selectionHelper.getNext();

That's all for now. Please let us know your questions or feedback in comments section !!!!


  1. i get error in parmdata source parameter kindly help how to find parmdata source of any form

  2. VPN is short for Virtual Private Network and is a technology that creates an encrypted secure connection over a less secure network like the Internet. The benefit is that it provides the security that the network on which it is based cannot provide. It uses the internet to transport data. Many such networks can be created by using different systems incorporating encryption and other security mechanisms to ensure that only authorized users can access the network and information cannot be intercepted by the others. It is like a tunnel built to transmit data between a network of say an organization and a remote user. It hides your data and IP address. dark web sites


How to reverse Free Text Invoice Voucher entries without Dialog

 Hey Folks ,  This blog post is in continuation of the previous post for Reversing Free Text Invoice Voucher entries with Dialog. Only diffe...