Skip to main content

Notifications

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...)

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,031 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,868 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans