Tuesday, November 1, 2011

CRM user gets new computer, Outlook does not sync anymore

Just change value of the column IsPrimaryClient in table SubscriptionClients

Monday, February 1, 2010

Firing plugin on change in many-to-many relationship

Well, I tried to fire my plugin on adding/removing a product to a competitor. Microsoft documentation describes SetRelated/RemoveRelated messages - but apparently these messages only get fired from the code, not from GUI. GUI fires AssociateEntities/DisassociateEntities messages. Which are not supported by plugins...

Then I found this nice script that allows the plugins to use AssociateEntities/DisassociateEntities messages.

http://crmpro.blogspot.com/2009/10/registering-plugins-for-event-on-many.html

Monday, February 2, 2009

C# Tricks

Nice article about calling unmanaged DLLs from .NET:
http://msdn.microsoft.com/en-us/magazine/cc164123.aspx


How to make single instance app:
http://dotnetperls.com/Content/Single-Instance-Windows-Form.aspx



How to make app that minimizes to system tray:
http://www.developer.com/net/csharp/article.php/3336751