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
371 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
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…
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…

760 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

20 Experts available now in Live!

Get 1:1 Help Now