Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Scenarios where it seems there is no choice but to make changes to existing code instead of extending - how to approach?

(0) ShareShare
ReportReport
Posted on by

Hello, 

I'm trying to get my head around extending everything instead of overlaying since I have read about the hard seal timeline. 

Since I am still adjusting to the "new world" I have been poking around here and there. 

For example, this method: GetLoyaltyCardRewardPointsStatusXML

5280.a.png

Its purpose is to build an XML document

0458.b.png

What if I had to add a new child element to the XML?

There are other code that I have seen (e.g. a method sets tables fields but specific field wasn't included and I want to include it before it updates) that makes me think in my head i'm saying "no problem ... add the 1 line of code in there...simple".  

But then i think of the hard seal and wonder how would I go about extending this method?  

I can't think of a way to extend the code in the above sample gracefully.

This is more of a question of how I would approach it for future scenarios and how to extend it without just going into a method and adding a line of code. 

Thanks for taking the time to read

*This post is locked for comments

  • RE: Scenarios where it seems there is no choice but to make changes to existing code instead of extending - how to approach?

    Thanks Sukrut.

    The key is to do the extensions. i understand. it's getting my head around how to do it so i'm thinking of scenarios and trying to figure it out. thanks again.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans