Skip to content

Commit ef27d1b

Browse files
committed
Updates
1 parent 67a83a5 commit ef27d1b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

powerapps-docs/developer/model-driven-apps/clientapi/reference/Xrm-Utility/getPageContext.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ search.app:
2727

2828
## Returns
2929

30-
The method returns an `input` object with the following attributes depending on whether you are currently on the *entity form* or *entity list*:
30+
The method returns an object with the `input` property. The `input` property is an object with the following attributes depending on whether you are currently on the *entity form* or *entity list*:
3131

3232
### Entity form
3333

@@ -36,8 +36,8 @@ The method returns an `input` object with the following attributes depending on
3636
|pageType|String|The current page type. The value returned is "entityrecord".|
3737
|entityName|String|Logical name of the entity currently displayed.|
3838
|entityId|String|ID of the entity record currently displayed in the form.|
39-
|createFromEntity|Lookup|Optional. The parent record that provides default values based on mapped attribute values. The lookup object has the following String properties: `entityType`, `id`, and `name`.|
40-
|formId|String|Optional. ID of the currently displayed form.|
39+
|createFromEntity|Lookup|The parent record that provides default values based on mapped attribute values. The lookup object has the following String properties: `entityType`, `id`, and `name`.|
40+
|formId|String|ID of the currently displayed form.|
4141

4242

4343
### Entity list
@@ -49,7 +49,8 @@ The method returns an `input` object with the following attributes depending on
4949
|viewId|String|ID of the view currently displayed.|
5050
|viewType|String|Type of the view currently displayed. Possible values are "savedquery" or "userquery".|
5151

52-
52+
> [!NOTE]
53+
> Only the `pageType` and `entityName` parameters will return values every time; all other parameters will return values only if specified by the logic that opened the page.
5354
5455
### Related topics
5556

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Gets the current page context.
1+
Gets the page context as an object representing the page.

0 commit comments

Comments
 (0)