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, ...
Suggested Answer

Is SysExtension framework better than switches?

(0) ShareShare
ReportReport
Posted on by 1,552
Hi,
 
I want to know the advantages of using SysExtension over switches? Is the preformance  better?
 
Or is there a reason why i should stick to switches?
  • Suggested answer
    Martin Dráb Profile Picture
    240,902 Most Valuable Professional on at
    This was already discussed in your own thread SysExtension framework mere two days ago.
     
    Let me repeat it once more:
     
    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.

    It's also important to mention that if you use a switch statement, such code can't be extended. But these frameworks do support extensibility, because you'll simply create a new and you don't have to change the method creating instances.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 455 Super User 2026 Season 2

#2
CU10121822-0 Profile Picture

CU10121822-0 376

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 47 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans