I want to implement a /Open in Excel/ experience for /Request for quotation lines/:
I created a new entity PurchRFQCaseLineEntity_XXX and i extended the PurchRFQCaseTable form to add the new entity to the menu items (using OfficeMenuInitializing and getDataEntityContext event handler for filtering based on RFQCaseId). The entity key is RFQCaseId and LineNum. After that, i was able to open and edit the request for quotation lines via /Open in Excel/.
Unfortunately, i am not able to create new lines via Excel.
If I leave the line number for the new data record blank in Excel, I get the error message /New data contains rows without identity. Identity fields: Company, Request for quotation case, Line number/ when using /Publish/.
When I fill the line number for the new data record in Excel, I get the warning /Changes made to read-only fields will be reverted. Continue?/ for /Publish/. After continueing i get the error /Write validation failed for table row of type 'PurchRFQCaseLineEntity_XXX' Infolog: Warning: Field 'Line number' must be filled in...'.
The line number (Field LineNum) is generated automatically when adding new lines via the user interface.
(I'm new to D365 development - would appreciate any help...)