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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

VendInvoiceDP Extension

(0) ShareShare
ReportReport
Posted on by 20

HI,

I'm trying to create a class extension of the VendInvoiceDP data provider because I need to add a logic for filling a new field in the VendInvoiceTmp table.

All the data provider's methods are private (except for processReport method) .

Is it possible to wrap a private method in the extension class? Which is the proper way to create an extension in this particular situation?

Thank You in advance for the help.

KInd Regards

Paolo

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at

    No, you can't use CoC on private methods.

    Review the code; maybe there are some other methods that you could extend, e.g. an initFrom* method on VendInvoiceTmp table. (I don't have any environment on hand to check it myself.). Or maybe you're able to run your logic at the end of processReport().

    If none of it works, you can either create an extensibility request to Microsoft, or duplicate the class, modify the copy and use it instead of the standard one.

  • Suggested answer
    ergun sahin Profile Picture
    8,826 Moderator on at

    docs.microsoft.com/.../extensibility-attributes

  • PB-27051451-0 Profile Picture
    20 on at

    We decided to wrap the processReport method and add our custom logic there.

    Thanks for your help.

    Kind Regards

    Paolo

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
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 422 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans