Home > 2009

Do you need the value of a lookup? I have written this bit of code to look a lookup value stored on another entity. Like finding the Customer lookup on an Incident (Case). Here is a bit of code that can lookup a lookup on any entity in CRM.

Click to continue reading
Click Here To View Post With Syntax Highlighting

Need to reference an external javascript file to make functions available in change events and in an onload? Here’s how!

Click to continue reading
Click Here To View Post With Syntax Highlighting

Just in case you need to get the id of an element in CRM and you are new to CRM development or IE development, the IE developer toolbar is great tool and huge help. You can check out this video on how to access it and hopefully it is enough of a teaser to convince you to start using it and play with it.

Click to continue reading
Click Here To View Post With Syntax Highlighting

Here is a video tutorial of how to take a case advanced find, edit the query, troubleshoot errors in SQL Management Studio, and update your excel query.

Click to continue reading
Click Here To View Post With Syntax Highlighting

Recently on the Microsoft forums someone asked how to change the values of a picklist based on the yes no value of a boolean field. Just add this script to the OnChange event of the yes/no field.

Click to continue reading
Click Here To View Post With Syntax Highlighting

In response to Peter Bergman’s post on the CRM forums, I traversed Microsoft’s code. I determined that the ApplyTemplate loads a specific page, and on that page, the ok button sets the information on the calling page. I melded the ApplyTemplate and ok methods together to create LoadTemplate provided below. With the right parameters, it will set the default template.

Click to continue reading
Click Here To View Post With Syntax Highlighting

This blog entry contains some helpful information about removing special characters from a string using javascript. I was able to modify it to be just a few of code in an onchange event. Just rename new_name to the attribute your correcting.

if (crmForm.all.new_name.DataValue && crmForm.all.new_name.DataValue.length >0)
{
crmForm.all.new_name.DataValue = crmForm.all.new_name.DataValue.replace(/[^a-zA-Z 0-9]+/g,'');
}

Click Here To View Post With Syntax Highlighting

The Notification Accelerator on Codeplex does not offer a queueitem RSS feed. I’m not sure why, but here is a simple solution to display an RSS feed. It defaults to the current user’s queues, but if the q=blah is specified in address then all queueitems in any queue with blah in it will be displayed.

Click to continue reading
Click Here To View Post With Syntax Highlighting

In my previous post about hiding fields and tabs using roles, I outlined how use roles to hide fields, etc. Here is a modification of the method to hide sections by business unit.

Click to continue reading
Click Here To View Post With Syntax Highlighting

Do you need to hide fields or tabs based on security roles. Here is an easy way to add the functionality to your CRM, use my code example.

Click to continue reading
Click Here To View Post With Syntax Highlighting

© 2011 MSCRM Blogger

This site does not necessarily represent the views of Microsoft. The material posted on this blog are provided AS-IS, and you are to use the content at your own risk. Some of the code and information on this site may use unsupported methods. If you experience any problems using the information provided through this website, please post a comment and we will do our best to assist you, however, we can in no way guarantee support or resolution.

Microsoft Dynamics®, Silverlight®, Visual Studio®, and the corresponding logos are a registered trademarks owned by Microsoft Corporation. MSCRM Blogger has made every effort to supply trademark information about company names, products, and services mentioned on this blog. All third party trademarks are the property of their respective owners. Any rights not expressly granted herein are reserved.