Tuesday, June 21, 2011

Assigning Null Values to Generics - Is it Allowed

We cannot assign null values to generics. The reason behind this is a generic might take a reference type or value type. As we know value types cannot be assigned with null value. How can we overcome this?.

We can us the default keyword with generics. Then reference types will be assigned with null if a value is not there and a value type would be given it's appropriate value.

T Name = Default(T);

Here T is a generic variable.

Thursday, June 16, 2011

CRM 4 - Invalid email Error when creating an Appointment

Error Message: Invalid e-mail address. For more information, contact your system administrator.

You might get an error message when creating an appointment stating invalid email address. When you check the records you will see that the email address is correct and you might be wondering why on earth that you are getting an error message like this. 

The reason is simple. although your email address is a valid email address if one the letters contain an invalid character the you get this error message.

e.g: abdñaddd@test.com

The letter n contains and invalid character for the email address. Once you get rid of that this would start working fine.

e.g: abdnaddd@test.com

Tuesday, June 14, 2011

Connecting to TFS 2008 using VS 2005

When you open VS 2005 and try to connect to TFS 2008 you will see that you don't have that option. This is because by default the interface for connecting to TFS 2008 is not there for VS 2005. You need to install this. I faced the same issue and one of my friend gave me a link that gets this job done.Please follow the link and you will be able to get it done. Thank you for publishing the article wssspectacular.



CRM 2011 - Creating a new Security Role

As we all know we can create a new security role that we won't to assign to a user from scratch in any version of CRM(2011, 4, 3,1.2).

When you do that the user is normally able to log to the CRM system. However with CRM 2011 there are a lot of new permissions that you need to give which are newer to you. So when you create a security role from scratch and assign to a user you get so many errors.(Privilege)

The best thing to do here to copy a system create security role and then change the user privileges. This would let you work perfectly.

Friday, June 10, 2011

CRM 2011 Error - Principal user is missing prvReadSystemForm privilege

When you create a new security role from scratch and then assign only that role to a system user and when you log to the CRM site you might get the above mentioned error.

This is because you haven't given read permission to the Form in the Customization entity.

Once this is done the system would start working for you.

Tuesday, June 7, 2011

Exporting Dynamic Spreadsheets from a IFD CRM

We came across an issue with this and found out that this feature is not possible directly Via a CRM which is an IFD. For this to work you need to install outlook client..

More about this will be in the following articles.

Under Using Dynamic worksheets or Dynamic PivotTables

Friday, June 3, 2011

CRM 2011 Error - Principal user is missing prvReadQuery privilege

When you create a new security role from scratch and then assign only that role to a system user and when you log to the CRM site you might get the above mentioned error.

This is because you haven't given read permission to the View in the Customization entity.

Once this is done the system would start working for you.

Retrieving Calendar of a Bookable Resource in Dynamics

There are occasions where we need to retrieve working days and working times of a resource in Dynamics grammatically. This is quite possible...