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 :
Microsoft Dynamics AX (Archived)

Defaulting "Requested approver" field in vendor invoice with "requester" field in Purchase order.

(0) ShareShare
ReportReport
Posted on by 1,645

Hi,

    How do I default "Requested approver" field in vendor invoice with "requester" field in Purchase order? I tried to make change in copyFromHeader method inside VendInvoiceInfoTable but it's not working. 

Thanks,

Alok

*This post is locked for comments

  • André Arnaud de Calavon Profile Picture
    307,271 Super User 2026 Season 2 on at

    Hi Alok,

    An invoice can be related to multiple orders. So in fact if you assume you have always one order, you can proceed with this idea.

    Can you share your current attempts? Then we might be able to see what could be wrong.

  • AlokShrestha Profile Picture
    1,645 on at

    Hi Andre,

                 For now we assume that we always have one order. My current attempts are:

    1.  To make change in copyFromHeader method in VendInvoiceInfoTable to get "requester" field value from Purchase order and assign it to Approver field in VendInvoiceInfoTable.

    2. To make change in initValue() method of VendInvoiceInfoTable datasource of VendEditInvoice form to initialize Approver field in VendInvoiceInfoTable with requester field from Purchase order.

    Non of the changes that I did above reflects on the Approver field in VendInvoiceInfoTable.

    Thanks.

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 > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans