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

Code executed in Client or Server on AX 2012 R3

(3) ShareShare
ReportReport
Posted on by 1,323
Dear team,
 
As we have concept like Client and Server in AX 2012 R3
 
Is the Table - Methods and Classes are always executed in Server by default.
 
Form methods are always executed in Client by default.
 
Is it?
 
Kindly advise pls.
 
Thanks in advance.
Categories:
I have the same question (0)
  • CU05031448-0 Profile Picture
    1,323 on at
    Kindly reply on this pls.
  • Verified answer
    Martin Dráb Profile Picture
    238,736 Most Valuable Professional on at
    Forms are on client, that's correct.
     
    It's not true that table and class methods execute on server; they may run on client as well. By default, they execute on the tier where they're called from, but certain methods or classes may be set to always run on a specific tier.
  • CU05031448-0 Profile Picture
    1,323 on at
    Thanks Martin,
     
    So, to execute the code in Server, can we use the keyword "Server" on the custom class or custom table methods or custom form methods and Run on property set to Server for the menu item.
     
    Am I correct?
     
    Is these the only way to execute on server side if required.
     
    Kindly advise pls.
  • Verified answer
    Martin Dráb Profile Picture
    238,736 Most Valuable Professional on at
    No, I doesn't apply to form methods. Forms always run on client.
  • CU05031448-0 Profile Picture
    1,323 on at
    Thanks Martin,
     
    So, we should go for only Class and Table methods to use Server keyword...
     
    Menu item - Run on property set to Server if required.
     
    Correct?
  • Verified answer
    Martin Dráb Profile Picture
    238,736 Most Valuable Professional on at
    Yes, you can say that, with some simplification.

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
André Arnaud de Calavon Profile Picture

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

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 309

#3
Diego Mancassola Profile Picture

Diego Mancassola 259

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans