Solved

Is there a way to add a dialog to the lead or opportunity form in MS Dynamics CRM 2013

Posted on 2014-10-26
3
383 Views
Last Modified: 2014-11-03
I created a dialog and want to use it for leads and opportunities.  I know I can start a dialog in leads by clicking on the 3 periods and selecting "Start Dialog" but this is too much for the users to remember.  Is there a way I can add it to the form as a selectable option when they get to the point they need to run the Dialog?
0
Comment
Question by:foxhelp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 19

Expert Comment

by:Rikin Shah
ID: 40405733
Hi,

1. Search with Dialog name in Customizations.xml

For eg: If you search with your dialog name, you could find something similar to this.

<Workflow WorkflowId="{60c78e25-2dd8-47ca-91aa-58fd674feb17}" Name="DialogName">
</Workflow>


2. Open the Dialog and press F11 to get the URL. In the URL we could find out the ID of the Dialog.

3. Create a ribbon button that will call a function defined here-

function callDialog() {
   var dialogId = "60c78e25-2dd8-47ca-91aa-58fd674feb17"; // This must be your Dialog ID
   var returnValue = showModalDialog("/" + Xrm.Page.context.getOrgUniqueName() + "/cs/dialog/rundialog.aspx?   DialogId=%7b" + dialogId + "%7d&EntityName=account&ObjectId=" + Xrm.Page.data.entity.getId());
}

Open in new window

0
 

Author Comment

by:foxhelp
ID: 40409038
Rikin,
I am not sure what you are saying here.  What does this first step mean?  
1. Search with Dialog name in Customizations.xml
0
 
LVL 19

Accepted Solution

by:
Rikin Shah earned 500 total points
ID: 40410394
Hi,

What I meant to say in the first step is:
Go to Customization -> Export the Solution -> Extract the Zip file to a temp location -> open customization.xml file with notepad or similar tool. -> search for workflow dialog name and get the ID.

You will have similar text that I have given here-
<Workflow WorkflowId="{60c78e25-2dd8-47ca-91aa-58fd674feb17}" Name="DialogName">
</Workflow>

Get the workflow ID and move ahead with step 2.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
Viewers will learn the different options available in the Backstage view in Excel 2013.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question