web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans