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?
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    238,782 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

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

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 386

#3
Adis Profile Picture

Adis 266 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans