Question

In MS Dynamics CRM I want to call post/pre update plugin when new related record is added. I think it can be done by using JS by refreshing the page but will look for other solution without page flicker.

Was it helpful?

Solution

It sounds like you may have to periodically query CRM with JavaScript and update the sub-grid when a new record has been added. There is no way to push the update to the form when the related record has been added, you will have to pull it with JavaScript.

Here is the JavaScript to refresh a sub-grid:

Xrm.Page.ui.controls.get("sub_grid_name").refresh();

This question may be relevant.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top