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…

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 =…

DLL merge and MSD CRM/365 (on-prem/On-Line)

While working as developer, many times we will have some readymade tools or class libraries / DLLs, which where developed by some other developers and they publish for developer kind. Salute to their generosity. We use those libraries in our development and our life becomes little easier. But while deploying it on other environments we…

Sample code to retrieve more than 5000 records using FetchXML in CRM

Originally posted on Nishant Rana's Weblog:
Hi, Sharing a sample code to retrieve more than 5000 records using the Fetch XML. Version 1 : private List<Entity> GetTotalRecordsfromFetch(string fetchXML, IOrganizationService orgService) { List<Entity> lstEntity = new List<Entity>(); int fetchCount = 5000; int pageNumber = 1; string pagingCookie = null; while (true) { // Build fetchXml…