cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Super User
Super User

PCF dataset method openDatasetItem Issue

Hi, 

 

I have a PCF of type dataset, and I tried to use the openDatasetMethod  as documented here (https://docs.microsoft.com/en-us/powerapps/developer/component-framework/reference/dataset/opendatas...😞

I've tried this way:

dataset.openDatasetItem({id: {guid: event.recordId}, etn: dataset.getTargetEntityType(), name: event.title ?? "" })

I've checked the parameters in the console, and seemed ok for me:

image.png

I didn't saw any error, nothing in the console, but absolutely nothing happened.

 

Later on I took a sample from the sdk, and saw that it works this way (this one navigates to the record):

dataset.openDatasetItem(dataset.records[event.recordId].getNamedReference());

 

So I have a solution for now, but I would like to know if the first approach that I took was wrong. Maybe I misunderstood something...

 

Kind regards,

Diana

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: PCF dataset method openDatasetItem Issue

Hi @DianaBirkelbach - the docs are not correct on this.

I have an open issue to correct this - https://github.com/MicrosoftDocs/powerapps-docs/issues/1465


In your case, I think you would pass:

{Id: event.recordId, LogicalName: dataset.getTargetEntityType()}

Hope this helps!

Scott

View solution in original post

1 REPLY 1
Highlighted
Super User
Super User

Re: PCF dataset method openDatasetItem Issue

Hi @DianaBirkelbach - the docs are not correct on this.

I have an open issue to correct this - https://github.com/MicrosoftDocs/powerapps-docs/issues/1465


In your case, I think you would pass:

{Id: event.recordId, LogicalName: dataset.getTargetEntityType()}

Hope this helps!

Scott

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (6,077)