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, ...
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
    237,662 Most Valuable Professional on at
    Is SysExtension framework better than switches?
    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

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