Hello all,
I need to create a Pending Vendor Invoice record in AX7 from outside AX i.e. using a 3rd party .NET application. I have created custom Data Entity on the VendInvoiceInfoTable and exposed OData Api which is consumed from my .NET application, and the process works fine, and record is created properly.
The problem comes when I want to add Line Items in a new Vendor Invoice record. For that I want to create Data Entity on VendInvoiceInfoLine table, but I couldn't because the Data Entity Wizard says "The natural key for the table VendInvoiceInfoLine was not found". This table is built-in and I am confused as how the natural key was not found.
What is the solution to this?
Plus is there any better way to create Data Entity for VendInvoiceInfoLine? I mean do I really need to create the Data Entity for this VendInvoiceInfoLine? Can I reuse the Data Entity I already created for VendInvoiceInfoTable, and customize/make it work for VendInvoiceInfoLine as well?
Plz suggest.