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 :
Microsoft Dynamics AX (Archived)

Remove code by extensions

(0) ShareShare
ReportReport
Posted on by

D365 Queries

2376.1.png

                       Default Code                                                                                              Customized                                       

(How to remove this if condition by using extension)

 

 0638.2.png

                                Default Code                                                                                      Customised                                       

Here they commented the default else part code in customised how to do this by using Extension.

 

 8171.3.png

                                Default code                                                                                      Customised                                       

Here we are changing the header title text in both if and else part, this can be done by using Post event handler of this method but we have to write that else if condition too right? i.e.

In Post Event Handler method

If (_setInitialText)

{

Modified code

}

Else if

{

Default code

}

Else

{

Modified code

}

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    239,364 Most Valuable Professional on at

    Changing code inside a method isn't possible with extensions. When you say you must change the code, you already failed in using extensions. Look again at your requirement and consider if there isn't a way to achieve it without requiring overlayering. If there really isn't, contact the owner of the code (most likely Microsoft) and request changes in the code so it become extensible.

    By the way, please use a title that describes the topic of your questions. If all threads had title like "Need solution please", the forum would be unusable. Maybe you missed instructions how to ask questions in this forum.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans