Hello!
I'm attempting to use the openDatasetItem function but i'm hitting a generic error - "Loading chunk 5 failed. " (screenshot attached)
here's the code i'm using:
var recordRef: ComponentFramework.EntityReference = { entityType: recType, id: recId, name: recName }; context.parameters.mapDataSet.openDatasetItem(recordRef);
I also noticed that the url that's generated may have an error in it (attached image) - the entity type (the 'etn' parameter) is listed as undefined as opposed to 'account'
cheers
J
@HemantG - I think Scott's posts contradicts what i'm experiencing. The documentation to use EntityReference for OpenDataSetItem matches what i had to supply, but there seems to be a bug in the actual function.
@AnqiChen Thanks for confirming the bug! I'll use openForm for now 🙂
hi,
We are fixing this openDataSetItem and it will use entityType and will be released at about early November, depending on our release plan.
Meanwhile, please try some work-around like context.navigation.openForm
Seems you are hitting a bug reported here - https://powerusers.microsoft.com/t5/PowerApps-Component-Framework/Using-dataset-opendatasetitem/m-p/362928#M890
Can you please check ? I am folowing up with engneering on the fix plan.
Hemant
WarrenBelz
85
Most Valuable Professional
Michael E. Gernaey
57
Super User 2025 Season 1
mmbr1606
55
Super User 2025 Season 1