Currently the dataset sample doesn't use opendatasetitem
Is there any reason for this? Using opendatasetitem has the advantage that if there is a CommandBar Command for Mscrm.OpenRecordItem - it will use that instead.
Also - the documented API isn't quite correct it seems. It is documented as accepting an EntityReference
but in fact it needs something like:
var entityRef = {
LogicalName:logicalName,
id:id
};
this._context.parameters.sampleDataSet.openDatasetItem(entityRef);cc/ @HemantG