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, ...
Unanswered

SysExtension framework

(0) ShareShare
ReportReport
Posted on by 1,552
Hi,
 
I've heard that there is a SysExtension framework that can be used instead of using switch cases to initiatlise sub classes.
 
Can someone write an example of how the class was with switch cases and how it became better with SysExtension framework -- please don't post urls fir your clarification 
I have the same question (0)
  • Martin Dráb Profile Picture
    238,782 Most Valuable Professional on at
    SysExtension framework is one of two available frameworks for this purpose (the other is SysPlugin). The documentation (https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/extensibility/register-subclass-factory-methods) explains differences between them.
     
    With these frameworks, the code creating instances don't need hard-coded names of classes. It lets a framework to find the right subclass based on some parameters.
     
    Here you can find more information about SysExtension framework, including an example: https://community.dynamics.com/blogs/post/?postid=31bbc085-ba95-4f75-a82a-de52a867005a.
  • junior AX Profile Picture
    1,552 on at
    Hi Martin,
     
    In the example link you provided..what should i replace [MyAttribute('A')] with?
  • Martin Dráb Profile Picture
    238,782 Most Valuable Professional on at
    There you'll use your attribute, with a parameter or parameters as per your needs. In this example, you say that this class should be instantiated if the factory is called with "A" value.
     

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... 514 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 390

#3
Adis Profile Picture

Adis 266 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans