Beiträge getagged ‘CRM 2011’

Cannot enter backslash key in forms using german keyboard

7 Oktober 2011

Last time I tried to create a new systemuser, which is mananged in an other domain as the CRM system, I wasn’t able ton enter a backslash key in the domain name field.
After some investigation, it turned out that I was not able to enter \ in any field. I’ve reproduced this issue on multiple systems (On-Line and On-Premise) and multiple language packs.

With help of @nzregs I could verify that it is not a general problem. After comparing system parameters, I found out that I was able to enter a backslash with an different keyboard layout than ‘de-de’. Therefore I opened a ticket with the CRM support which is currently under investigation. It looks like it is a bug in the default form scripts.

If you have to enter a backslash in the meantime and you are experiencing the described problem, you could either copy/paste it from anywhere or you could enter ALT + 92.

Update

This issue was confirmed as a bug. The fix will be released with Rollup 7, which is currently scheduled for March 2012.

Using HttpUtility.UrlEncode in a plugin leads to a SecurityException

18 Mai 2011

In a recent project I had to develop a plugin which is executed in the plugin sandbox. The sandbox restricts the rights plugins to a ‘safe’ amount. See http://msdn.microsoft.com/en-us/library/gg334752.aspx for a description. According to the SDK, web request are allowed.

Part of my task was to send a request to a web service which expects data URL-encoded. Normally you would use following class (part of System.Web)

HttpUtility.UrlEncode("some data here");

I was surprised that this leads to a SecurityException if used in a sand-boxed plugin. The sandbox does not allow the use of this class.

Instead of rewriting the method (I hate reinventing the wheel…) I’ve searched for a replacement, and found

Uri.EscapeDataString("some data here");

which is usable in sand-boxed plugins. For my task the result was the same as with UrlEncode, however I am not sure I they are different in their results.

Do I need that SPN?

3 März 2011

One important thing that is often forgotten during/after the installation of Dynamics CRM is to properly set the SPNs for your service accounts (if necessary ;) ).
Here are three links which I often take as reference when we plan new deployments:

Manage Dynamics CRM 2011 with PowerShell

27 September 2010

With the beta of Dynamics CRM 2011, Microsoft offers the ability to script deployment management tasks with PowerShell.

The server role ‘Deployment Tools’ contains a set of PowerShell cmdlets to script Deployment Manager tasks.

After you have installed the Deployment Tools role you are able to add the Dynamics CRM PowerShell-Snap-In to your PowerShell session.

To use the cmdlets you have to enter following command into a PowerShell console, which adds the PowerShell-Snap-In to your active session.

Add-PSSnapin Microsoft.Crm.PowerShell

After this the CRM Snap-In will be listed when you enter this command

Get-PSSnapIn

Make sure that the result contains

Name : Microsoft.Crm.PowerShell
PSVersion : 2.0
Description : A Windows PowerShell snap-in containing cmdlets that manage components of Microsoft Dynamics CRM.

Now, you can view the cmdlets which are defined in the Snap-In with following command

Get-Command -Module Microsoft.Crm.PowerShell

At the moment of writing this post, following cmdlets are available

Disable-CrmOrganization
Disable-CrmServer
Edit-CrmOrganization
Enable-CrmOrganization
Enable-CrmServer
Get-CrmCertificate
Get-CrmDefaultOrganization
Get-CrmDeploymentAdministrator
Get-CrmEtmSettings
Get-CrmOrganization
Get-CrmServer
Get-CrmSetting
Get-CrmThrottleSettings
Import-CrmOrganization
New-CrmDeploymentAdministrator
New-CrmOrganization
Remove-CrmCertificate
Remove-CrmDeploymentAdministrator
Remove-CrmOrganization
Remove-CrmServer
Set-CrmCertificate
Set-CrmEtmSettings
Set-CrmSetting
Set-CrmThrottleSettings
Update-CrmOrganization

This is a great enhancement for managing a crm deployment. You can speed up your administrative tasks, if you add this Snap-In to your profile. See http://technet.microsoft.com/en-us/library/dd315342.aspx