Sample JavaScripts for Dynamics 365 CE or DataVerse Power APps
Dynamically Add event handlers in Dynamics 365 Form Scripts. Take a look of all code : https://docs.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/xrm-webapi https://docs.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference Hope this helps