RE: Work flow not populating the created records in subgrid.
A grid won't automatically refresh itself. It needs a legitimate event to happen. Something like a load, a save or creating a record while using the '+' button on it. Same thing applies to plugins.
But it's possible configure it. In my case, I had to do it on the refresh of another grid.
First, make sure your workflow is sync.
Second, in javascript, create a function like this:
function onRefreshMyOtherGrid() {
Xrm.Page.getControl('myGridName').refresh();
}
Third, you need to find an event that occurs at the same time. In this case when the first grid is refreshed. Then add this on the load of the form.
function onLoad() {
Xrm.Page.getControl('MyOtherGrid').addOnLoad(onRefreshMyOtherGrid);
}
So, when I added a record in a grid. The grid to the right got refreshed too.