web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How can I use Chain of Command method to extend the logic of the method

(0) ShareShare
ReportReport
Posted on by 55
Hi, I would like to ask on how can I use Chain of Command method to extend this run() method from the standard class call PriceDiscAdmCheckPost. 

I want extend the logic to assign the new contract value that I have extended it with extension class before the postJournal() being execute.

For example as below.

Categories:
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    238,332 Most Valuable Professional on at
    Your design can't be implemented - you'll either come up with another solution of your business problem, all you'll need to ask Microsoft to make this method extensible in the way you want.
     
    With CoC, you can add code at the beginning or the end of an existing method, while you want to put code in the middle of a method (between lines 766 and 775), which isn't possible.

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…

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
Abhilash Warrier Profile Picture

Abhilash Warrier 843 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 560 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 287 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans