web
You’re offline. This is a read only version of the page.
close
Skip to main content
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

(2) ShareShare
ReportReport
Posted on by 1,275
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,275 on at
    Code executed in Client or Server on AX 2012 R3
    Kindly reply on this pls.
  • Verified answer
    Martin Dráb Profile Picture
    237,662 Most Valuable Professional on at
    Code executed in Client or Server on AX 2012 R3
    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,275 on at
    Code executed in Client or Server on AX 2012 R3
    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
    237,662 Most Valuable Professional on at
    Code executed in Client or Server on AX 2012 R3
    No, I doesn't apply to form methods. Forms always run on client.
  • CU05031448-0 Profile Picture
    1,275 on at
    Code executed in Client or Server on AX 2012 R3
    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
    237,662 Most Valuable Professional on at
    Code executed in Client or Server on AX 2012 R3
    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

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

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 400 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans