Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

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

(0) ShareShare
ReportReport
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,391 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans