Announcements
Dear Friends,
While extend PurchLine table, initValue() method using CoC getting below error.
Wrapping method 'initValue' marked with attribute Hookable set to 'false' is not supported.
Thanks and Regards
Rahul
Hi Rahul.p,
If a method is explicitly marked as [Hookable(false)], the method can't be wrapped in an extension class.
https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/extensibility/extensibility-attributes
Hi,
You can extend method initValue on PurchLineType class as all logic for PurchLine.initValue is stored there.
BR, Sergey
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.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 666 Super User 2026 Season 1
Abhilash Warrier 280 Super User 2026 Season 1
Martin Dráb 207 Most Valuable Professional