web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Collection Classes uses in x++

(0) ShareShare
ReportReport
Posted on by 12

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?

I have the same question (0)
  • Verified answer
    GirishS Profile Picture
    27,843 Moderator on at

    Hi,

    Refer to the below blog.

    http://daxingwitheshant.blogspot.com/2018/07/collection-classes.html

    Thanks,

    Girish S.

  • Verified answer
    huijij Profile Picture
    19,813 on at

    Hi,

    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,

  • Suggested answer
    Mohit Rampal Profile Picture
    12,573 Moderator on at

    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.

  • Suggested answer
    Eiken Profile Picture
    Microsoft Employee on at

    Hi,

    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 ArrayListMapSet, 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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 286 Super User 2026 Season 2

#2
SajeedMullaji Profile Picture

SajeedMullaji 272

#3
Martin Dráb Profile Picture

Martin Dráb 258 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans