diff --git a/src/XrmDefinitelyTyped/Resources/xrm.d.ts b/src/XrmDefinitelyTyped/Resources/xrm.d.ts index 21ace7e7a8..28f4230aa0 100644 --- a/src/XrmDefinitelyTyped/Resources/xrm.d.ts +++ b/src/XrmDefinitelyTyped/Resources/xrm.d.ts @@ -53,7 +53,7 @@ /** * Interface for an entity reference for the Xrm.Page context. */ - interface EntityReference { + interface EntityReference { id: string; entityType: T; name?: string | null; @@ -550,6 +550,11 @@ */ type AnyControl = BaseControl & Partial & WebResourceControl & IFrameControl & LookupControl & SubGridControl & DateControl & OptionSetControl>; + const enum ViewTypeNumber { + SavedQuery = 1039, + UserQuery = 4230, + } + /** * Remarks: * If the subgrid control is not configured to display the view selector, calling this method on the ViewSelector returned by the GridControl.getViewSelector will throw an error. @@ -558,7 +563,7 @@ /** * Use this method to get a reference to the current view. */ - getCurrentView(): Xrm.EntityReference; + getCurrentView(): EntityReference; /** * Use this method to determine whether the view selector is visible. @@ -568,7 +573,7 @@ /** * Use this method to set the current view. */ - setCurrentView(reference: Xrm.EntityReference): void; + setCurrentView(reference: EntityReference): void; } /**