Dynamics 365 Introduction:

Dynamics 365 is a portfolio of intelligent business applications that delivers superior operational efficiency and breakthrough customer experiences enabling

Select the entity you want > Select a main form

Dynamics 365

Take one column Tab

Add Sub-grid in that new tab

Fill the details

Add name, Label, change Records as All Record Types, Select entity to popup here in this entity, click ok

Click Control > Add Control

Click on Editable Grid and Add it

Click web radio button in Editable Grid > Click ok

After Events will appear, Click Add in Form libraries to add web resource

Search and Add your web resource, if you don’t have web resource Click New

Fill the Name, Display name, Type as script(Jscript) , click Text Editor to add java script

Java Script to add in the Text Editor, , Don’t forget to change the entity name to your entity name

function RunOnSelected(executionContext) {

var selected = executionContext.getFormContext().data.entity;

var Id = selected.getId();

var pageInput = {

pageType: “entityrecord”,

entityName: “vinay_contactus”,

entityId: Id

};

var navigationOptions = {

target: 2,

height: {value: 80, unit:”%”},

width: {value: 70, unit:”%”},

position: 1

};

Xrm.Navigation.navigateTo(pageInput, navigationOptions).then(

function success() {},

function error() {}

);

}

After Clicking Ok In Text Editor, click save > Publish

 

After that web resource will appear next Click Add in Event Handlers

Add Function and Click on the check boxes (Enable, Pass Execution), next click ok

After Added in Event Handlers, change the event as OnRecordSelect, next click ok

Click Save and Publish

Now Go to the App

Open your Entity> Click New > Go to the Tab where you set the sub-grid

Click any record and it will Open as pop-up

Now, see the result the record was opened in a pop-up window

For any Help or Queries Contact us Info@crmonce.com or +918096556344