getPageContext (Client API reference)
Gets the page context as an object representing the page.
Note
This method is supported only on Unified Interface.
Syntax
Xrm.Utility.getPageContext();
Returns
The method returns an object with the input
property. The input
property is an object with the following values depending on whether you are currently on the entity form or entity list:
Entity form
Name | Type | Description |
---|---|---|
pageType |
String | The current page type. The value returned is entityrecord . |
entityName |
String | Logical name of the table currently displayed. |
entityId |
String | ID of the table record currently displayed in the form. |
createFromEntity |
Lookup | The parent record that provides default values based on mapped column values. The lookup object has the following String properties: entityType , id , and name . |
formId |
String | ID of the currently displayed form. |
Entity list
Name | Type | Description |
---|---|---|
pageType |
String | The current page type. The value returned is entitylist . |
entityName |
String | Logical name of the table currently displayed. |
viewId |
String | ID of the view currently displayed. |
viewType |
String | Type of the view currently displayed. Possible values are savedquery or userquery . |
Note
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.
Related articles
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기