Adding menu items for specific views
Here’s how to add a menu item in CRM to a specific view – e.g. a “Closed Opportunities” menu item that when clicked takes the user to the Opportunity view has the Closed Opportunities view displayed rather than the default view.
Here’s a screenshot where I’ve added a new menu item to a custom view of Hot Opportunities for my sales managers:
1. Determine the URL of the view you want a menu item for, by using CRM’s Copy Link feature. E.g. If you want the URL of the Closed Opportunities view:
a. Go to the Opportunities list view and select the Closed Opportunities view from the View dropdown
b. From the More Actions menu select: Copy Shortcut à Of Current View
c. Open Word or Notepad and from the Edit menu select Paste
d. This will give you something like this:
Closed Opportunities
Note: there are 3 ‘layers’ to this URL:
- The first section of the URL provides the address to your CRM system,
e.g.: http://gtapp3/CRMArchitects/_root/homepage.aspx?etc=3&viewid=%7b00000000-0000-0000-00AA-000010003006%7d
- If we just launched this URL then CRM would open and the default entity view would appear.
- We don’t actually need this part of the URL, the Sitemap will add this for us if it is not present and it is better to do this as the sitemap will then be able to deployed to other environments.
- The second part is the URL provides the address to a specific entity’s list view,
e.g.: http://gtapp3/CRMArchitects/_root/homepage.aspx?etc=3&viewid=%7b00000000-0000-0000-00AA-000010003006%7d
- If we launch this URL then CRM would open and the entity specified by the ‘etc’ parameter would be displayed. The default view of that entity would be displayed.
- The 3rd part is an optional parameter that will allow a specific view to be displayed (it refers to the unique GUID assigned to the view):
e.g.: http://gtapp3/CRMArchitects/_root/homepage.aspx?etc=3&viewid=%7b00000000-0000-0000-00AA-000010003006%7d
- This is what we wanted. Now we have a URL that once pinned behind a menu item in the SiteMap will allow our users to have one-click access to a specific view.
- Given we don’t need the first part of the URL, the URL that we want is:
/_root/homepage.aspx?etc=3&viewid=%7b00000000-0000-0000-00AA-000010003006%7d
- But there’s a trick required here, because our URL has a & in it we have to do one little fiddle. Replace that & with &
e.g.: /_root/homepage.aspx?etc=3&viewid=%7b00000000-0000-0000-00AA-000010003006%7d
Now you may have hit an issue back when you tried to copy the shortcut to the view.
- CRM does not always let you copy the shortcut of a view, sometimes you will be told “Shortcut for the selected view is not available”. I think you get this on the ‘My’ views – e.g. “My Opportunities”, “My Appointments”.
- I’m not sure if you can get around this by having a look in the database and determining the GUID of the view and then building the URL up from that. That might be a solution.
- When I hit this limitation, I was able to get around it by making the view I wanted the default view for the entity. I then used a less specific URL, e.g. http://gtapp3/CRMArchitects/_root/homepage.aspx?etc=3 which would just takes the user to the entity’s list view, where my view shows by default. Of course you won’t always be able to solve this limitation this way.
Back to the sitemap…
2. Add a new SubArea node for your new menu item, e.g.:
<SubArea Id="nav_closedopps" Entity="opportunity" Title="Closed Opportunities" Url="/_root/homepage.aspx?etc=3&viewid=%7b00000000-0000-0000-00AA-000010003006%7d " />
Note:
- The SubArea ID is something you make up. It must be unique in your sitemap file.
- The Title is whatever you want displayed on the navigation menu.
- The URL is where you paste your URL (remember to drop off the prefix)
4. That’s it! Now, import your sitemap and then refresh your browser and you should see your new menu item.
Leave a Reply Cancel reply
Me
Previous Posts
- Implicit Shares in Microsoft CRM 2011
- Cannot Delete Plug-ins in CRM 2011
- Duplicate Record Button using Jscript in Microsoft CRM 2011
- Shrinking VirtualBox VDI Files
- Global Search Add-ons for Microsoft CRM 2011
- Metro UI coming to Microsoft Dynamics CRM
- Service Contracts & Service Scheduling in Microsoft CRM 2011
- Order Processing Features in Microsoft CRM 2011
- TK Dialogs vs. Microsoft CRM Dialogs
- MyCRM add-ons for Microsoft CRM 2011
- SMS and Fax Integration for Microsoft CRM 2011
- 10 Microsoft CRM Demoing Tips
- Web Resource Upload Utility for Microsoft CRM 2011
- Adxstudio Portal Solutions for Microsoft CRM
- Scribe Insight and Microsoft CRM 2011
- Scribe Online: Replication and Integration Services for MS CRM
- Click Dimensions Email Marketing for Microsoft CRM 2011
- Social Integration for Microsoft CRM 2011 with Parrot
- Introduction to Demo Builder for Microsoft CRM 2011
- Email Marketing add-ons for Microsoft CRM 2011
- Reusable Jscript Library of Common Functions for CRM 2011
- Building Custom Screens using Dialogs and Ribbon Buttons in CRM 2011
- Resco MobileCRM vs. CWR Mobile CRM
- Adding Record Creation Buttons to the CRM 2011 Ribbon
- How to Bulk Create AD Users during a CRM Redeployment
- Upgrading Microsoft CRM 3.0 to CRM 2011
- How to view Ribbon Definitions in CRM 2011
- Displaying the Activity Feed Wall on a CRM Dashboard
- Activity Feeds in Microsoft CRM 2011
- Installing a 2-server CRM 2011 with Service Accounts and Minimum Permissions
- CRM 2011 Duplicate Checking Enhancements in Rollup 5
- VirtualBox Network Configuration for Microsoft CRM 2011
- Working with Display Rules in CRM 2011–Ribbon Customisation
- Call Centre Optimised CRM–An Example Solution
- Launching CRM Forms via Java Script in CRM 2011
- Working With REST Results in CRM 2011
- Quick Create Contact from the CRM Case Form
- Adding a new Button Group to the CRM Ribbon
- Editing Ribbon Buttons in CRM 2011
- Supporting Environment-specific Parameters in CRM 2011 Jscript
- Quick Create Contact from the Phone Call Form
- Defaulting a Lookup field via a REST query at Form Load
- Building a Microsoft CRM 2011 VM – A Quick Checklist
- Microsoft CRM 2011 Outlook Client Command Line Installs
- CRM 2011 Command Line Install for SSRS and Email Router
- Installing CRM 2011 via Command Line and XML Config File
- How to Duplicate a Virtual Box Image
- CRM List View URLs
- Installing the Customer Care Accelerator (CCA) for CRM 2011
- CRM 2011 Dialogs–A couple of gotchas
Tag Cloud
Top Posts
- Jscript Reference for Microsoft Dynamics CRM 2011
- Getting Started with CRM 2011 Online Fetch XML Reporting
- Adding a Button to a CRM 2011 Form Ribbon
- Shrinking VirtualBox VDI Files
- Creating records from Jscript in Microsoft CRM using REST
- Hiding a Ribbon Button in CRM 2011
- Installing the Customer Care Accelerator (CCA) for CRM 2011
- Social Integration for Microsoft CRM 2011 with Parrot
- Filtered Lookup Approaches in CRM 2011
- Resco MobileCRM vs. CWR Mobile CRM
