Notifications
Announcements
No record found.
Hi,
I need to add a new field to VendDocumentTableMap. I understood that it is not possible to create extension form maps and I need to use an Interface class. But i don't know how to bound the existing map with the new interface class.
Thank you
There is no interface class for this map as far as I know.
But you can work around the limitation by casting the map into the underlying table buffer in your code. This way you can access your custom field.
Here's an example with SalesPurchLine map.
if (salesPurchLine.TableId == tabeNum(SalesLine) { SalesLine salesLine = salesPurchLine; info(salesLine.MyField); }
Hi Gabi,
You cannot add fields to an existing map via extension.
Microsoft has implemented some mappings as interfaces, but not all classes have interface classes.
docs.microsoft.com/.../maps-as-interfaces
As mentioned, You can access your custom fields using the table buffer instead of your map.
if (_custVendInvoiceJour.TableId == tableNum(CustInvoiceJour)) { custInvoiceJour = CustInvoiceJour::findRecId(_custVendInvoiceJour.RecId); // Now you can access your custom fields of CustInvoiceJour }
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 456 Super User 2025 Season 2
Martin Dráb 429 Most Valuable Professional
BillurSamdancioglu 239 Most Valuable Professional