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 :
Finance | Project Operations, Human Resources, ...
Unanswered

How to get paymentList from BankPaymAdviceVendControllerV2 in Extension class

(0) ShareShare
ReportReport
Posted on by 972

Hi All

I have a question in Vendor Payment advise.

In Class BankPaymAdviceVendControllerV2, it has below logic to get Payment list. However, in my Class BankPaymAdviceVendControllerV2_Extension, I couldn't get "defaultParameters" because it is private. Does anyone know how could I get Payment list in BankPaymAdviceVendControllerV2_Extension?

pastedimage1674670249386v1.png

pastedimage1674670292848v2.png

Best Regards,

JustZM

  • Martin Dráb Profile Picture
    241,467 Most Valuable Professional on at

    You can't access private class members, therefore you need to look for workarounds. Maybe it exposed by a non-private method, or maybe you can get the variable value in some other way.

    In this case, defaultParameters variable is populated in main() if the method gets called with a BankPaymAdviceDefaultParameters object in Args. You can use the same logic to access the object and you can store it in your own variable, if needed.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 347 Super User 2026 Season 2

#3
CU-1234529-002 Profile Picture

CU-1234529-002 197

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans