Skip to content

Commit d88fa01

Browse files
authored
Merge pull request #7323 from MicrosoftDocs/repo_sync_working_branch
Confirm merge from repo_sync_working_branch to main to sync with https://github.com/MicrosoftDocs/powerapps-docs (branch main)
2 parents dc0cc4d + fcf8ec5 commit d88fa01

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

powerapps-docs/developer/model-driven-apps/clientapi/navigate-to-custom-page-examples.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,13 @@ A more complete example of this can be found at [Override the default open behav
194194
1. Customize the table ribbon **CommandDefinition** for **OpenRecordItem** to call the function above and include the **CrmParameter** with the value **SelectedControlSelectedItemReferences**.
195195

196196
```xml
197-
<JavaScriptFunction FunctionName="run" Library="$webresource:cr62c_OpenCustomPage">
198-
<CrmParameter Value="SelectedControlSelectedItemReferences" />
199-
</JavaScriptFunction>
197+
<CommandDefinition Id="Mscrm.OpenRecordItem">
198+
<Actions>
199+
<JavaScriptFunction FunctionName="run" Library="$webresource:cr62c_OpenCustomPage">
200+
<CrmParameter Value="SelectedControlSelectedItemReferences" />
201+
</JavaScriptFunction>
202+
</Actions>
203+
</CommandDefinition>
200204
```
201205

202206
1. In the custom page, override the **App**'s **OnStart** property to use the `Param` function to get the `recordId` and lookup record.

0 commit comments

Comments
 (0)