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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PCF dataset method ope...
Power Apps
Answered

PCF dataset method openDatasetItem Issue

(0) ShareShare
ReportReport
Posted on by 3,072 Most Valuable Professional

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/opendatasetitem😞

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

 

 

I have the same question (0)
  • Verified answer
    ScottDurow Profile Picture
    1,039 on at

    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

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 385

#2
Vish WR Profile Picture

Vish WR 367

#3
timl Profile Picture

timl 340 Super User 2026 Season 1

Last 30 days Overall leaderboard