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

What are maps and macros? Why we use maps and macros?

(0) ShareShare
ReportReport
Posted on by 226
I needed to understand the concept of these terms in d365fo x++, and where we can use them?
I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at
    It's not which maps are you interested in. There are table maps, such as SalesPurchLine, that allow using common logic for multiple tables (such as both SalesLine and PurchLine). And there is also a collection class called Map.
     
    A macro basically allows you to name a piece of code and then insert it in your code. Their main purpose in X++ used to be to define constants, but you shouldn't do that anymore, because X++ now has 'const' keyword for this purpose.

    (I moved the question from the AX forum here and removed d365fo from the title, because this whole forum is about D365FO and there is no need to repeat it in titles.)

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 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans