?
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
Medium Priority
?
384 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

MS Access 2003 or later To MySQL Migration Project Hello All, this is my second article in the category of MS-OFFICE Automation. In internet I am not able to find any comprehensive resource on the Migration of MS Access back-end to MySQL so I fin…
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 coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

762 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