I'm developing a PCF for OptionSet attributes in a model driven app for Dynamics 365. We're using this PCF multiple times on the same form.
For some attributes the PCF is not getting any value in context.parameters.OptionSet.raw. This happens only sometimes though. I've tested this using the same record: one time I open it and it may work as expected, but the next time there might just be no value being passed. I created logging in the init and updateView functions and I'm just getting undefined in those cases.
The desired value is definitely set in the record (I've verified this by getting the record via CDS). I disabled all the Form scripts, there are no business rules, and there are no onChange scripts.
Has someone here run into this?


Report
All responses (
Answers (