Hi,
I am working on a PCF control that populates data on the dynamics 365 form. I have found one from PCF gallery that creates a custom event window.dispatchEvent(customEvent) and JavaScript web resource listens to the event using window.parent.addEventListener. This seems to be working for me. However, Could anyone please let me know if window.parent.addEventListener is supported way on implementation in dynamics?
If this is not supported what is the best solution to update a form field from the PCF control?