{Issue Resolution} Auto-UNfollow a record enabled for Activity feeds in Dynamics CRM 2013/2015

In one of my earlier blogs I had shown how to automatically follow a record using code. Some of the community members wanted to unfollow also using code.

Opportunity entity is automatically enabled for Activity feeds, so I will not get to those bits.Here is the code to achieve the same

Link for the auto follow a record using code is : dynamicsofdynamicscrm.wordpress.com/…/issue-resolution-auto-follow-a-record-enabled-for-activity-feeds-in-dynamics-crm-20132015

There is no official code samples available, hence this piece of code also becomes very important:

//ID of the user

Guid userid = new Guid(“CE4C5141-9941-456B-9007-FBC3C5F02E8E”);

  //ID of the record for which auto-follow needs to be disabled

                    Guid pitch = new Guid(“3B5DE3B0-79A2-E411-80DE-C4346BAD5280”);


                    QueryExpression query2 = new QueryExpression(“postfollow”);

                    query2.Criteria.AddCondition(new ConditionExpression(“ownerid”,ConditionOperator.Equal,userid));

                    query2.Criteria.AddCondition(new ConditionExpression(“regardingobjectid”, ConditionOperator.Equal, pitch));

                    EntityCollection postFollowCollection = service.RetrieveMultiple(query2);

                    foreach (Entity postFollow in postFollowCollection.Entities)




Hope it helps!


{Useful to know}Silverlight web resources AND CRM:the way forward

Google first announced their plan to deprecate support for Silverlight in their Chrome web browser last year, and they recently reaffirmed this decision with specific timelines. Support for Silverlight inside Chrome will see deprecation starting in January 2015, with workarounds ending in April 2015. The possibilities were (a) Google might push their timelines out; or (b) Microsoft might come with a solution. Before we talk about paths forward and the future, let’s discuss the current facts.

1. Sometime in January 2015, Google will release a version of Chrome that will prompt users to enable Silverlight when accessing a Silverlight application. Once enabled, the setting should stay indefinitely, and the user won’t be asked again. This is very similar to the functionality seen today in Firefox.

2. Following that change, sometime in April 2015, Google will roll out another update that will disable Silverlight from running in Chrome entirely.  At this point, it will be technically possible to override this behavior in Chrome’s settings, but the average end user can’t be expected to do this.

3. Finally, sometime around September 2015, Chrome will completely lose the ability to run Silverlight with no way to override.  

So in case you have some tools working on Silverlight, web resources in Silverlight in your CRM and you expect it to cross-browser, you will not be able to work through it .

Now the support for other browsers for Silverlight. Referring from Wikipedia:



Refer Microsoft site:



Microsoft Silverlight web resources remain supported in Microsoft Dynamics CRM 2015 and Microsoft Dynamics CRM Online 2015 Update for backwards compatibility. For components that will be able to be presented on all clients, we recommend using HTML web resources with HTML5 instead of Silverlight.

HTML5 is the preferred client technology for the web, over web plug-ins like Silverlight and Flash. HTML5 can be consumed from any device (PC, tablet, smartphone, and more) and heavily uses JavaScript (and many powerful JavaScript libraries, such as jQuery) and CSS.

For some, standing up a parallel HTML5 application has taken only hours or a few days; for others it can be more time consuming, depending on the level of customization required. This is the way forward to go.