a. Search with Dialog name in Customizations.xml located in your solution
b. Open the Dialog and press F11 to get the URL.
Javascript Code
Code: Select all
function opendialogonload()
{
window.open("/" + "cs/dialog/rundialog.aspx?DialogId=%7bA5ACE0AD-EE1C-4E02-BB2F-F8BC139A90FD%7d&EntityName=lead&ObjectId=" + Xrm.Page.data.entity.getId());
}
If you have to select a specific row in view to display the dialog, use the code below and call it in a custom ribbon.
Code: Select all
function DisplayDialog()
{
var selectedrecords = document.all['crmGrid'].InnerGrid.SelectedRecords;
for (var i = 0; i < selectedrecords.length; i++)
{
window.open("/" + "cs/dialog/rundialog.aspx?DialogId=%7bF6056C48-4F59-4FE8-882E-E219B56B4EEF%7d&EntityName=new_alert&ObjectId=" + selectedrecords[i][0]);
}
}