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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Problem with custom entity and Open in Excel

(0) ShareShare
ReportReport
Posted on by
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...)
I have the same question (0)

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 683 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 563 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 398 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans