Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

How to add new field into VendInvoiceInfoTable, PurchParmTable and VendDocumentTableMap?

$
0
0

Hi all.

In an extension, there's a new field added to PurchTable, let's say, a string field named ISVPointId. This field will be copied into VendInvoiceInfoTable and PurchParmTable. Ax makes intensive use of VendDocumentTableMap in the subsequent operations of validation an initializacion, so it's clear that VendDocumentTableMap must be taken into account.

I need to add this new field into the tables VendInvoiceInfoTable (and noticeably, VendInvoiceInfoTableTmp), PurchParmTable and VendDocumentTableMap.

It's clear that I will need to create extension tables for VendInvoiceInfoTable and PurchParmTable. But maps cannot be extended in D365FO.

The only relevant information i've found is in https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/extensibility/maps-as-interfaces. It suggests that maps are now held in class interfaces, so I supposed I should look for VendInvoiceInfoTableTmp interfaces, but it doesn't exists. SalesPurchTableInterface appears to be an alone implementation of this mapping extension that is not envisioned in VendDocumentTableMap, so this article is not really very helpful.

I've found VendDocumentTableTypeBase and derived classes, but it relies on setting/getting fields in VendDocumentTableMap. But it's not possible to add new fields into it, nor make map extensions (and so, map the new field in table extensions).

How can this be achieved? Perhaps creating a completely new map and mapping there the new field, and managing this new map in VendDocumentTableType classes?


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>