Get to Know the Dynamics Web API .fireOnchange () Function


The .fireOnChange() function in Dynamics 365 and Power Apps is used to trigger the OnChange event for a specific column programmatically. It simulates the OnChange event, executing any scripts or logic tied to that event. The syntax for using the function is straightforward: formContext.getAttribute("columnName").fireOnChange(). There are several scenarios where you might want to use .fireOnChange(), such as data validation and cascading changes. It allows you to ensure that custom validation logic is executed after setting a column's value programmatically and that all dependent logic is executed correctly when changes in one column trigger updates in other columns.


Article 6m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time