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)

How to add customized fields in Purchase order versions

(0) ShareShare
ReportReport
Posted on by 931

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

I have the same question (0)
  • Suggested answer
    _MGP Profile Picture
    506 on at

    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

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans