Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Table Grid Dataset Component Sample

I am trying to build my first Dataset component. I took th ecode from the Table Grid sample component to get started. That code however is not working. I am getting the following errors. (



I figured perhaps it was a capitalization error and changed it to below and get more errors. Anyone know what is going on here?

Annotation 2019-11-06 105651.png

Frequent Visitor

First Error was:

Annotation 2019-11-06 110435.png


Can you try with the following in attachment ?



I tested my component and it looks like they are a problem with the getNamedReference().
Using this code:

                        console.log("CLick on :"+;
                        let entityFormOptions = {
                            entityName: <string>entityReference.etn,
                            openInNewWindow: true
                        console.log("Object: "+entityFormOptions);
                        console.log("Object Etn : "+ <string>entityReference.etn);
                        console.log("Object Id: "+;
                        console.log("Open :"+;

So the etn properties returns an undefined value.








Did you find the solution for this ?


I am also facing the same issue

Frequent Visitor

Unfortunately, I did not.

Power Apps
Power Apps

I downloaded the latest samples and also refreshed the CLI using "PAC install latest" and was  able to build the control and see it in the test harness. 


Check the change in the latest code for the sample for the lines you pointed out as error 


 let entityFormOptions = { entityName: entityReference.etn!, entityId:, };


I have install the latest CLI.

etn is still not available. Please see the attached screenshot.


@Bhuvita Can I jump in and add 3 screenshots instead of 1


This is sample typescript code - note no issues reported




this is the same code inside a chrome debug window





and here is confirmation that the current library that .etn is undefined in the current Western Europe (CRM4) region



It seems that there is an issue somewhere between the typescript library and type definitions and the library being served from within the organisation.


Now for the moment you can fix it by using




and in copy format


var entityReference=<any>currentRecord.getNamedReference();
let entityFormOptions={
    entityName: entityReference.etn || entityReference.LogicalName,



with confirmation here





But I wouldn't really want to be introducing hacks like this.


It's annoying that both Microsoft's document and Microsoft's Typescript Component Framework definitions say one thing while the actual production code says something else.


If this post has answered your question please consider it for "Accept as Solution" or if it has been helpful give it a "Thumbs Up".


yeah right now I am just ignoring the typescript like this.




Helpful resources

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (2,364)