diff --git a/types/xrm/index.d.ts b/types/xrm/index.d.ts index 408638bc94066e..413c63254a7923 100644 --- a/types/xrm/index.d.ts +++ b/types/xrm/index.d.ts @@ -3026,7 +3026,7 @@ declare namespace Xrm { * A collection of all the controls on the form that interface with this attribute. * @see {@link https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/clientapi/reference/collections External Link: Collections (Client API reference)} */ - controls: Collection.ItemCollection; + controls: Collection.ItemCollection; } /** diff --git a/types/xrm/xrm-tests.ts b/types/xrm/xrm-tests.ts index 3dbd7278573163..fa24622dd98b90 100644 --- a/types/xrm/xrm-tests.ts +++ b/types/xrm/xrm-tests.ts @@ -205,6 +205,9 @@ if (multiSelectOptionSetAttributeEnum !== null) { const multiSelectOptionEnumValue: TestMultiSelectOptionSet[] | null = multiSelectOptionSetAttributeEnum.getValue(); } +// Demonstrate that controls on a MultiSelectOptionSetAttribute are typed as MultiSelectOptionSetControl +multiSelectOptionSetAttribute?.controls; // $ExpectType ItemCollection | undefined + /// Demonstrate setFormNotification let level: Xrm.FormNotificationLevel;