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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

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…
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
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 create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

733 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