Notifications
Announcements
No record found.
I am learning x++ programming. I am seeking help to understand uses of collection classes in x++. I want to understand scenarios when we should use collection classes in x++. Can someone please guide me?
Hi,
Refer to the below blog.
http://daxingwitheshant.blogspot.com/2018/07/collection-classes.html
Thanks,
Girish S.
The collection classes are Array, List, Map, Set, and Struct. The following examples contain the ways of using collections.
learn.microsoft.com/.../xpp-data-collection
Best regards,
Hi, In addition to above suggestions, 'Collection classes are used to store, organize, and manipulate data in an efficient and flexible manner. Not just data (records) but objects also can be stored.
technologyblog.rsmus.com/.../
You can find lot of examples in standard code, the main use case is when you need to add multiple values/records and later iterate through the records to perform an action based on saved values.
Collection classes are used to store objects. They let you create arrays, lists, sets, maps, and structs that can hold any data type, even objects. For maximum performance, the classes are implemented in C++ (they are system classes). Collection classes were previously known as foundation classes. The collection classes are Array, List, Map, Set, and Struct.
The following link is about the official document.
X++ collection classes - Finance & Operations | Dynamics 365 | Microsoft Learn
The following link contains a lot more details related to these collection classes.
Using the Dynamics AX Collection Classes - RSM Technology (rsmus.com)
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 660 Most Valuable Professional
André Arnaud de Cal... 549 Super User 2025 Season 2
Sohaib Cheema 307 User Group Leader