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

Announcements

No record found.

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,811 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 617

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 461 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 298 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans