Skip to main content

Refresh Caller Form Datasource - Part 1 - Caller Args

This is the first part of the series on how to change properties on caller objects.

This post explains how to refresh caller form data source.

We may have a situation where we may need to refresh content on Parent Form data source. This may be due to the changes done in the child form data source.

In Dynamics AX/D365, we can manipulate almost any control of the caller object (Form/menuItem etc).

This can be done by fetching the caller argument element.args().

From here we get a list of options based on our needs...


For our scenario, we need to get the form data source and refresh it. This can be done as follows.

The FormRun object contains all the properties which you see on the Property Tab (Property Tab is a manifestation of the object properties as controls).

Using FormRun we refresh our data source.



Comments