Hello everyone,
I built a PowerApps Component Framework (PCF) control that overlays a Fluent UI DatePicker on model-driven apps. The idea is to unlock more customization (date ranges, initial dates, etc.) while still binding to a Dataverse date field.
The issue:
My PCF only binds to fields of type Date and Time, not to fields of type Date Only. As a workaround, I can temporarily change the column format to Date and Time, bind the control, and then switch it back to Date Only. This works, but it feels fragile, and I’m not sure if exporting/importing the solution would preserve the binding.
I found an open-source project (GitHub - BIDSL/PCFControls) where their date picker binds directly to Date Only fields. I compared manifests and TypeScript, but I couldn’t figure out why theirs works and mine doesn’t. I also experimented with of-type-group
in the manifest to allow both DateAndTime.DateOnly
and DateAndTime.DateAndTime
, but that didn’t solve it.
At this point, I’d even be fine with having two separate versions of my control (one for Date Only, one for Date and Time), but I’d prefer a single solution if possible.
Has anyone managed to build a PCF that binds to both DateOnly
and DateAndTime
fields cleanly or could share some insight/tips to help my issue?
Thanks in advance for any insights!
timl
169
Super User 2025 Season 2
Michael E. Gernaey
136
Super User 2025 Season 2
Gagan Singh
73