Creating empty XRM Environment in PowerApps

Originally posted on Better CRM:
If you are following the latest news regarding Dynamics 365 ecosystem, you are probably aware of the fact that Microsoft decided to put everything upside down, change the naming of every technology and use the old names with some new things. Of course I’m exaggerating a little here, but some…

Editable Grid: Make it read only

We have a out the box option to make editable grid read only on the from it self but its applicable only for the views not for the sub-grids. Thus, with small JavaScript we can make it read only based on our business requirements. Here is the sample code for it function setFieldsDisabled(context) { context.getFormContext().getData().getEntity().attributes.forEach(function…

Refresh Sub-Grid based on field value

Some time we need to refresh MSD 365 sub-grid data based on some condition. This can be done with small JS, here is the sample code, its applicable to editable grid as well…. function FilterSubgridBasedOnField() { var sGrid = window.parent.document.getElementById(“booked_asset”); if (sGrid == null) { alert(“Grid is null”); setTimeout(function () { FilterSubgridBasedOnAssetGroup(); }, 2000); return;…