Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

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

Posted on by 1,643

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

  • AlokShrestha Profile Picture
    AlokShrestha 1,643 on at
    RE: Defaulting "Requested approver" field in vendor invoice with "requester" field in Purchase order.

    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.

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,113 Super User 2024 Season 2 on at
    RE: Defaulting "Requested approver" field in vendor invoice with "requester" field in Purchase order.

    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.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,113 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,918 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans