PowerApps-Samples icon indicating copy to clipboard operation
PowerApps-Samples copied to clipboard

MultiSelectOptionSetControl - OptionSet Options undefined

Open PabloTomasParejaAtFundae opened this issue 3 months ago • 3 comments

PowerApps-Samples/component-framework/MultiSelectOptionSetControl/MultiSelectOptionSetControl

Error occured during initilization of control: SampleNamespace.MultiSelectOptionSetControl;Message: Cannot read properties of undefined (reading 'forEach') TypeError: Cannot read properties of undefined (reading 'forEAch') at multiSelectOptionSetControl.init

imagen

Options property is undefined: // Create a select option for each option specified by the target OptionSet and add it to the dropdown (context.parameters.controlValue as ComponentFramework.PropertyTypes.MultiSelectOptionSetProperty).attributes?.Options.forEach