From a18df2ec49987b30306621c5a440f05b055bd7da Mon Sep 17 00:00:00 2001 From: Christophe Gondouin <14264672+cgoconseils@users.noreply.github.com> Date: Sun, 5 Apr 2026 21:33:54 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#74799=20[xrm]=20Mo?= =?UTF-8?q?difying=20MultiSelectOptionSetAttribute.controls=20type=20by=20?= =?UTF-8?q?@cgoconseils?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/xrm/index.d.ts | 2 +- types/xrm/xrm-tests.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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;