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

Notifications

Announcements

No record found.

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,827 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,565 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
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans