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
373 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
  • 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

On Sep 22nd 2014 Microsoft released Update Rollup 1 for Microsoft Dynamics CRM 2013 Service Pack 1 and back in July Update Rollup 3 was released.  So we now have:   Update Rollup 1Update Rollup 2Update Rollup 3Service Pack 1Update Rollup 1 for S…
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…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

911 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now