Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

How to add customized fields in Purchase order versions

(0) ShareShare
ReportReport
Posted on by 925

Hi all,

I will be adding new fields to the PurchLine table and i need these fields to be updated in the Purchase order versions.

Any suggestion would help.

Thanks,

Rusty

*This post is locked for comments

  • Suggested answer
    Chaitanya Golla Profile Picture
    Chaitanya Golla 17,225 on at
    RE: How to add customized fields in Purchase order versions

    Hi,

    Record get created in table PurchTableVersion whenever a purchase order is either confirmed or reconfirmed or approved or reapproved.

    Record in PurchTableVersion table gets created in method createNewVersion of class VersioningPurchaseOrder. So, if you have custom fields on PurchTable and want them to get defaulted include your code here.

    Record in PurchLineHistory(i.e Purch line versions) table gets created in method archivePurchLine of class VersioningPurchaseOrder. So, if you have custom fields on PurchLine and want them to get defaulted include your code here. Also, you need to create the fieldlist in the macro VersioningFieldLists.

  • Suggested answer
    _MGP Profile Picture
    _MGP 500 on at
    RE: How to add customized fields in Purchase order versions

    Hi Rusty,

    I used this blog post here to good effect. Basically there are 'line' equivalent queries, tables and views to add in your new field(s) so they get stored as part of the purchase order confirmation journals.

    http://theinfolog.com/adding-fields-to-purchpurchaseorder-purchase-order-confirmation/

    In addition to this post I found I needed to update the Map PurchTableMap (i,.e. PurchLineMap for your example).

    Also, when you do your BP compiles keep running them as you fix up the classes as more keep on dropping out that you need to fix (for me I had to add methods to the following classes to clear all of the BP warnings: AxPurchTable, AxPurchTableAllVersions, TMSPurchOrder_PurchTable, PurchPurchReq_PurchTableAllVersions)

    Let me know if you need anything else on this.

    Mike

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans