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

Writing business logic in C# instead of X++

(0) ShareShare
ReportReport
Posted on by 5

I'm starting to learn X++ for the cloud version of F&O and found this page on the Microsoft docs site. I got it working and it seems great but I never see any posts about people using this approach. Has anyone run into any major disadvantages or know any reasons why I should avoid it?


Thanks

I have the same question (0)
  • Verified answer
    Khushhal Garg Profile Picture
    1,514 on at

    There is one more layer you are adding to read data or accessing objects from F&O. It is not a best practice either. I think there will be performance impact due to extra layer of DLLs.

  • Verified answer
    Martin Dráb Profile Picture
    239,392 Most Valuable Professional on at

    The usual use case for writing C# libraries is when you want to use an existing .NET API (for example, you want to consume external web services, you want to talk to Azure services, you want deserialize JSON to objects, you want to parse files with LINQ etc.).

    If you consider creating a C# library and writing queries in LINQ, ask yourself what advantage would it bring to you. If you can simply write a query in native X++, it's clearly much less work, less things to manage and deploy, fewer boundary crossings (the interoperability has its quirks), you can utilize all X++ features and functions (the LINQ provider is limited in this respect), you'll be able to find objects by references in Visual Studio and so on. You would need strong arguments for giving up all these advantages. If you can do everything in X++ and you don't need to fetch data from AX to a .NET library for further processing, moving your business logic to C# doesn't sounds like a good idea.

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 689

#2
André Arnaud de Calavon Profile Picture

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

#3
CP04-islander Profile Picture

CP04-islander 356

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans