Skip to content

Commit

Permalink
πŸ› Normalise recordId GUID for custom page
Browse files Browse the repository at this point in the history
  • Loading branch information
scottdurow committed Aug 9, 2021
1 parent 3ab1755 commit d5df5b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SmartButtonsUCI/SmartButtons.ClientHooks/src/OpenDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function getParameters(
const isGridContext = (selectedContext as Xrm.Controls.GridControl).getEntityName != undefined;
const isFormContext = (primaryContext as Xrm.FormContext).data != undefined;
const dataParameters = {
id: entityId,
id: normaliseGuid(entityId),
logicalName: isGridContext
? (selectedContext as Xrm.Controls.GridControl).getEntityName()
: (selectedContext as Xrm.FormContext).data.entity.getEntityName(),
Expand Down

0 comments on commit d5df5b3

Please sign in to comment.