Welcome to our website

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. ed ut perspiciatis unde omnis iste.

Posts mit dem Label Customization werden angezeigt. Alle Posts anzeigen
Posts mit dem Label Customization werden angezeigt. Alle Posts anzeigen

Samstag, 28. Januar 2012

Microsoft Dynamics CRM 2011: How to use Visual Ribbon Editor Tool?

Microsoft Dynamics CRM 2011: How to use Visual Ribbon Editor Tool?

Recently, I was assigned a task of ribbon customization in Dynamics CRM. The requirement was like configure a custom ribbon button on custom entity to call some JavaScript methods. I’ve used the Visual Ribbon Editor Tool. This tool is quite handy and intuitive for ribbon customization. I would like to share my experience here in below post.Before to start with a Ribbon Editor Tool, let’s first configure the web resources (Images and JavaScript file). The images will be used as an icon on a button. Below are 3 different types that CRM supports. Image formats can be PNG, JPG, GIF or ICO.
  1. Small: 16 x 16 pixels
  2. Medium: 32 x 32 pixels
  3. Large: 66 x 48 pixels
Following are the steps to add image to web resource 1. Click Web Resources on left navigation pane in your solution. image 2. Click New to add web resource record. 3. Specify the name and the display name. 4. Select Format of the image. 5. Click browse to select an image path to upload image. 6. Save and publish the newly created web resource record. image Follow the same process to add 32x32 Image. Let’s add a JavaScript function which will be called on custom button click These are the steps to add new Library as web resource 1. Repeat steps 1-3 as above 2. Select Script(JScript) as Type of web resource. image3. Click on Text Editor. 4. Insert below function in Text editor window
   1: function TestRibbon()
   2: {
   3:    alert("Test Ribbon Customization using Visual Ribbon Editor.");
   4: }
image 5. Click ok. 6. Save and publish a web resource Now it’s time to play with Visual Ribbon Editor Tool. Use below link to download it. http://crmvisualribbonedit.codeplex.com/releases/view/75530 Extract the files and Run “VisualRibbonEditor.exe” image 1. Click imageon top – left of the screen named as “Connection Info..” , image 2. Specify the connection details image 3. Once connected, click on image button. image 4. Select the required entity for ribbon customization. image 5. By default, It Loads the ribbon type as Form image 6. If you want to create a new Group then click on “New Group” button. image 7. Specify the ID image Instead of creating new group, you could also add the button on existing group.For that you just need to select any existing group. image In this example I have created a new group. It will be added at the last position on ribbon toolbar. image 8. Click on New Button to insert a button on above group. image 9. Specify the button name. image10. Specify the following details for the newly created button on Details tab.
a. Id: Defines button id. b. Label: Defines caption or display text for button. c. Tooltip: Defines tooltip text for the button. d. Template Alias: Defines how button will be displayed on ribbon with Large, medium, small icon and it also vary depending on the selected Template of group.(step-7)
    • 01(Large) : Defines large image (32x32).
    • 02(Medium): Defines small image (16x16).
    • isv(Medium): Defines small image (16x16).
image
e. Sequence: Use arrow buttons to setup a sequence of custom button. f. 16x16 Image: Name of button image from web resource (16x16).(Created as a web resource earlier) g. 32x32 Image: Name of button image from web resource (32x32). (Created as a web resource earlier)
image 11. Now, click on Action tab shown as below. 12. Click on Add link for specifying the “Function name” and “Library” image You can also use “Display Rules” and “Enable Rules” via this tool which will allow us to configure many criteria for enabling/disabling a custom button. 13. Click on Save button that will import the solution in CRM image image 14. Now you can verify the button on your entity’s form ribbon. image 15. On click of this button you’ll get the JavaScript alert Message. image

http://www.dynamicsconsulting.de/2012/01/28/microsoft-dynamics-crm-2011-how-to-use-visual-ribbon-editor-tool/

http://www.biztom.de

Microsoft Dynamics CRM 2011: How to launch a Dialog on click of custom ribbon button?

Microsoft Dynamics CRM 2011: How to launch a Dialog on click of custom ribbon button?

clip_image006In this post I will explain how to launch a Dialog from Ribbon Button in Dynamics CRM. The requirement is like configure a custom ribbon button on custom entity which will launch a dialog (Process).In this Example, I’ve used custom entity “Flight Route” contains a button called “Test Button” which will launch a dialog. Dialog will select a flight name from the option set and insert new note record on the selected flight route record. Following are steps that demonstrate launch dialog from ribbon button. Before to start with a launch dialog, we need to create 1. Create a dialog for “Flight Route” entity · Select Solution. · Select Processes. · Create new process. clip_image002 · Specify the Process name. · Select Entity. · Select “Activate as” as “Process” and “Category” as “Dialog”. · Configure it as an on-demand process. · For this dialog make sure that it should contain at least one “Prompt and Response” clip_image004 2. Javascript Library as a web resource · Create new Web resource” /javascripts/LaunchModalDialog.js” · Click on Text Editor. Insert below function in Text editor window.
   1: function LaunchModalDialog(dialogId,typeName,recordId)
   2: {
   3: var serverUrl = Xrm.Page.context.getServerUrl();
   4: recordId=recordId.replace("{", "");
   5: recordId=recordId.replace("}", "");
   6:
   7: dialogId=dialogId.replace("{", "");
   8: dialogId=dialogId.replace("}", "");
   9:
  10: // Load modal
  11: var serverUri = serverUrl +'/cs/dialog/rundialog.aspx';
  12:
  13: var mypath =  serverUri +'?DialogId=%7b' +dialogId.toUpperCase()  +'%7d&EntityName=' + typeName+'&ObjectId=%7b' +recordId+'%7d';
  14:
  15: // First item from selected contacts only
  16: window.showModalDialog(mypath);
  17:
  18: // Reload form.
  19: window.location.reload(true);
  20: }
In above JavaScript method I have used 3 different parameters. dialogId is id of the dialog we need to open from button (String Parameter) typeName is entity’s logical name (String Parameter) recordId is entity’s current record id form where the dialog will be launched. 3. Get the Dialog Id Value · Once you have created new dialog. · Click Start Dialog. clip_image002[4] · That will open new dialog window. · Get the dialog id value from the URL(Ctrl+N) and note it down somewhere, to use the same in coming steps. clip_image003 4. Insert custom button on entity’s form using Visual Ribbon editor. ( To create a new button on ribbon, you can refer below link---) http://ankit.inkeysolutions.com/2012/01/crm-2011-how-to-use-visual-ribbon.html 5. After inserting a new custom button, follow the below steps to add JavaScript function with parameters · Click on Add link for specifying the “Function name” and “Library” a. Specify function name and library name. b. Click on “Add” link as shown below. It will open a list of parameter types which you can pass with the function. clip_image001 As discussed earlier (refer step 2) we need 3 different parameters to call JavaScript method. Pass those values as described below. The first parameter will be the value which we have noted in step 3. The second one is entity name. And the last one is the record GUID. clip_image002[6] · Clicks on save. It will save and publish the changes on CRM server. clip_image003[4] 6. Now you can verify the button on your entity’s form ribbon. clip_image005 7. On click of this button your dialog will be launched. clip_image007 8. Select Flight Name from the list and click next and then Finish on the last screen. clip_image009 9. At the end, a note will be generated on Flight Route entity clip_image011

http://www.dynamicsconsulting.de/2012/01/28/microsoft-dynamics-crm-2011-how-to-launch-a-dialog-on-click-of-custom-ribbon-button/

http://www.biztom.de

Freitag, 27. Januar 2012

Dynamics CRM 2011- Setting Multi-Level Categories Against a Record Codelessly

Nice summary from Leon:

This is a bit of a variation on a theme I did a while ago when I talked about using filtered views for address population. In this case I wanted to explore if we could set up a subject-like hierarchy and then use filtered lookups to enter category levels easily against an account. It turns out it works quite nicely. image

Essentially, you set the first category from you list of top level categories. Then, you set level 2 which will automatically adjust to only the valid values, based on the category 1 value. Finally, you set the category 3 value, based on the value in category 2.

So How Do I Set This Up?

First of all, we create a new Category entity. image In this case I have stripped everything out; there are no notes, activities etc. and the record is organization owned. Next I set up a recursive 1:N relationship so that for a given category I can set an infinite number of category levels, each with an infinite number of categories. image The main points of interest here are the changing of the display name to ‘Parent Category’ and the changing of the display option to ‘Use Custom Label’ so I can refer to the next level down as ‘Sub Categories’. On the category form I also add the parent category lookup, created as a result of this relationship. image Finally, I add three lookups to the account form so I can add three levels of category to my account record. image Finally, I populate my category hierarchy. Unfortunately, there is no nice tree view to employ so I fill it up in pretty much the same way I would if I was populating, for example, an account hierarchy. My advice would be to do it via a data import.

Where’s The Magic?

So far this will just let us pick three category values from all category values and add them to an account; not exactly exciting. The trick comes in adjusting the filters on the lookups. For category 1, we set up a new system view called Level 1 Categories. This just shows those categories with no parent category i.e. they are at the top of the tree. image We then go to our first lookup and force it to only use this view for its values. image The result is when we click the lookup only the values in the top level appear. image For the other two lookups, we use the Related Records Filtering properties of the lookup. For the category 2 lookup, we set it as follows: image The setup for the category 3 lookup is identical, except we replace ‘Category 1 (Accounts)’ with ‘Category 2 (Accounts)’. This means, clicking on, say, the category 2 lookup shows only the valid values, based on the selection for category 1. image And that is it. With all that set up, all the user has to do is pick the category 1 value and the category 2 values will be auto-filtered. Once the category 2 value is selected, the category 3 values will filter.

Why Not Use Subjects?

Subjects are nice in that they can be linked to an account with a 1:N relationship and they have a tree view lookup. However, they do not, at this time, play nicely with lookup filters. If you add a subject lookup to an account form and try to filter its values, based on the selection in another subject lookup, CRM throws an error. This has been reported and, I am sure, will be addressed in a future roll-up.

Conclusions

If you have a multi-level hierarchy you wish to apply to a record, such as an account, and you are looking for a reasonably user-friendly way to capture the information this is not such a bad solution and does not require code or Silverlight web resources. While my first choice would be the subject entity, because of its friendly tree view, if this is not practical, this solution provides an alternative approach which supports any number of category levels.

http://www.dynamicsconsulting.de/2012/01/27/dynamics-crm-2011-setting-multi-level-categories-against-a-record-codelessly/

http://www.biztom.de

Freitag, 16. September 2011

activities, crm2011, customization, reports, subgrid, views

Back in the days before we had Microsoft Dynamics CRM 2011 available, it was a commonplace customization to show entities related to the parent entity directly on the parent’s form by utilizing an iFrame. Making information such as latest history items (nowadays called closed activities) quickly visible to any user opening the form is often justified, as one key functions of a CRM system is to share information about what interaction has taken place with the customer. Referencing the URL of the related view on the iFrame was not exactly supported, but it was a relatively safe customization to apply nonetheless.
Due to popular demand, Microsoft introduced an official method for achieving this UI customization in CRM 2011 through the use of the form sub-grid element. As a part of the entity forms redesign, the subgrids have now become an out-of-the-box feature on several default entities, such as accounts, contacts and opportunities.

Different navigation points, different views

It’s important to note that subgrids don’t use the entity associated view definition, which is applied when traditionally navigating to the view by using left side menu items on an entity form. Instead they allow you to separately choose a filter to “view only related records”, in combination with any of the system views available for the entity in question (but not the associated views, as those are “special” views). 9 times out of 10 you’ll want to keep the filter on, as showing non-related records on the entity’s form would under normal circumstances defy the standard UI logic of how Dynamics CRM presents records in different windows.
OK, fair enough, so that’s why the columns in a subgrid aren’t updated after you edit the entity related view, like you used to do in CRM 4.0 and previous versions. We can live with that. In order to provide a consistent user experience, I would recommend that these two views are set up so that they have identical contents. This is because an “oldskool” CRM user may navigate through the left side menu by habbit, whereas a person new to Dynamics CRM will probably prefer to just scroll through the form. Sadly there’s no “save as” functionality available on the entity related view, and you can’t promote a normal view to become a related view (since there’s only one of them). This means you have to manually configure the two views to be indentical in terms of attributes, column order, width, sorting and (in some cases) filters.

Rolling up the records

Another thing that may surprise a seasoned Dynamics CRM consultant until he learns the tricks of the latest version is that the aforementioned feature has further implications specific to accounts and opportunities in particular. As we’ve come to know, these entities have special capabilities enabled in the activity views: the roll-up functionality. Instead of being restricted to only activities directly related to a record, we can actually see a bit further. Let’s take a simple example of an account and it’s open activity associated view:

It’s that “Include Related Regarding Records” selection above the grid which allows us to view activities not only related to the account itself but also the ones regarding a contact of the account and an opportunity related to it. Pretty neat, as it’s often the people working at an account that we associate communication and activities to, such as emails and appointments.
Now, let’s take advatage of the new CRM 2011 functionalities and look at the activity subgrid that’s conveniently available in the out-of-the-box configuration of an account form:

Huh? Where did my activities go? They’re still there, but this particular navigation path will not allow you to view them, since you’re on a subgrid and, as we previously concluded, subgrids can’t show the entity associated view. This means there’s no way for you to apply the “Including Related Regarding Records” functionality over here.
I’ll be the first to admit I’ve fallen for this trap in customer demos more than once. The menu anchor for accessing the Notes & Activities subgrid is just too tempting to click, when what you really intended to do was to view the fully featured activity associated view and access a complete list of the related activities. If the difference between view columns was a minor inconvenience, then this is downright misleading to many users I’m sure.
The quick solution for this would be to just remove the activity subgrids from the account and opportunity entity forms where the results can be contradicting, thus forcing the user to navigate through the old fashioned menus into the related activities views. Another option would be to perform the old iFrame trick and just embed this view onto a form iFrame, which does sound a bit 4.0-ish. The last option is to go and vote on Microsoft Connect, requesting MS to include the full roll-up functionality for subgrid views in a future version of Dynamics CRM.

Activity roll-up across an account hierarchy

Let’s kick it up a notch further and look at a more complex scenario. It’s not uncommon to have accounts that have a hierarchical relationship with one another. Typically these are either subsidaries or branch offices of the parent account, which need to be treated as separate entities, even though they may form a single customer relationship when it comes to business activities. Below is an example of a hierarchy where there are three different levels of accounts, with each of them being a candidate for actities. And let’s not forget, accounts act as the parent record for contacts and opportunities, opportunities act as parents to quotes, orders and so on.
In this example we have four activities (the orange boxes) that have been added to various levels of the customer data hierarchy. Ultimately we’d of course like to be able to get a 360 view of the customer, regardless of which particular data object the user has associated the activity with. Let’s start by opening the Sub-account and navigating to the associated activities view, since we already have established that you can’t trust the sub-grids to view all data. On this window we get the full view of all four activities:

Great! Let’s try the opportunity record next:

Works the way it should, I see the activities from the opportunity as well as the related order record. Now, let’s go up to the very top of the hierarchy and open the Top level account record.

Wait – why is it so empty here at the top? I can see what’s goint on at the very bottom level of the hierarchy, the Sub-sub-account’s task, but why is there nothing from the middle tier? The reason for this is that none of the records visible in the Sub-account’s activity view were actualy set as regarding that particular account record. The special filter in the activity view was able to pick them up based on a parental relationship to the account (I’m assuming). However, that filter doesn’t roll up into the account hierarchy structure in general, which means the Top level account can only see activities from its own contacts, opportunities and then any of the account records beneath it. Had the Sub-sub-account’s task been related to a contact down in the hierarchy, even that one wouldn’t be visible up at the top.
As a final demonstration of the power of associated views over sub-grids, let’s see what things would have looked like on the middle tier for the Sub-account, had I accidentally clicked on the Notes & Activities anchor instead:

“Hmm, nothing much going on with this account, better call the account manager to see what’s the problem here…”

Reports to the rescue

The relational data model of a CRM system doesn’t always manage to make the underlying information structure fully visible to the casual user who is browsing the records instead of managing them. In order to eliminate the complexity of relationships and hierarchies between various entities and truly roll up data to provide that 360 view, it’s advisable to reserve an adequate share of your CRM implementation and development budget for creating summary reports that present exactly the information that the users are expecting to get out of the system.
Even with the standard reports that come with Microsoft Dynamics CRM, you can already get a more accurate overview of the activities in a hierarchical account structure. The Account Summary Report, which can be run against any account record, will allow you to view information from sub-accounts as well as related records. You just need to remember to change the default filters to “include”:

Looks great and also prints out nicely onto PDF’s that can be shared with users who are not yet familiar with accessing Dynamics CRM directly. You could of course email them a link to the report, but that URL doesn’t preserve any filter selection applied.
If you know your way around working with Visual Studio and BIDS, then creating a custom report that displays all the activities and embedding it on a form iFrame should be perfectly possible. Just don’t ask me about how to construct the query needed for pulling the activity data from all the different entities (let alone if you’re on CRM Online and need to use Fetch XML instead of SQL), since I’m not an expert on the topic. However, if you have any examples of such, please feel free to drop a comment below on how you’ve simplified activity data presentation for the CRM end user in your solutions.

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Free Samples By Mail