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

Want to know about Macros in AX

(1) ShareShare
ReportReport
Posted on by 1,434
HI all,
I have started to learn AX 2012, and want to learn about the use of Macros.
Please suggest some Examples of uses of Macros.
 
Thank you
I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,994 Most Valuable Professional on at
    First of all, check out the documentation, namely Macros in X++. Just note that the remark about constants and SysDa framework doesn't apply to AX 2012; these are features introduced by F&O.
     
    You can find many examples in the standard application, but the most common case are these two:
    1. Definition of constant values. Either your own, or you can use constants defined in Microsoft macro libraries, e.g. #MillisecondsPerHour in #TimeConstants.
    2. Field lists in pack() and unpack() methods used in RunBase framework.
  • Verified answer
    Hana Xue Profile Picture
    Microsoft Employee on at
    Hi,
    In addition to the official documentation, you can also check blogs about macros in AX to learn more. Apart from this, you can also search for videos about AX macros on YouTube.
    https://stoneridgesoftware.com/local-macros-and-regular-expressions-in-dynamics-ax-2012/
    https://dynamics.folio3.com/blog/working-with-macros-in-x/
    Best Regards,
    Hana
  • Verified answer
    Judy Profile Picture
    Microsoft Employee on at
  • Raj Borad Profile Picture
    1,434 on at
    Hi all,
    I cannot tick your answers as verified, because of this Website issue. It has been going for loading for a long time....
     
    Thank you all for your suggestions.
     

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
Abhilash Warrier Profile Picture

Abhilash Warrier 669 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 384 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans