Open create ‘Form’ from sub-grid directly by avoiding associated records between entities

In MSD 365, when we add sub-grid on form by creating relation between two entities, it will gives Create (+) button and associate view button. When we click on Create (+) button, dynamics shows already created associations between these two entities, ref below screen shots… Some time we don’t require this associated records and always…

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…

bulk Create/Update/Delete for Dynamics 365

  Create / Update / Delete can be done with bulk operation, to avoid more DB hits and it will improve performance of the plugins and or code. Here is reference MSDN URL http://msdn.microsoft.com/en-us/library/jj863631.aspx Default max batch size is 1000, its applicable for all three create/update/delete. bulk Create can be done with following code snippet CreateRequest…

Call action with input & output parameters

Many times we need to send and or receive parameters from plugin to JavaScript and vice a versa. So here are the steps for it… Create an action with input & output entity reference parameters. Make sure all parameters are required. In your JS code function CreateWID(firstEntiryGuid, secondEntityGuid) {       var data =…