Archive for the ‘Uncategorized’ Category

SharePoint Important Security Update April 2015

April 21, 2015 Leave a comment

Microsoft released few days ago the Security bulletin MS15-36 rated as « Important ». This bulletin mention several breaches on Sharepoint 2013 and SharePoint 2010 that could lead to an elevation of privilege. Even if, so far, this breach seems to be not exploited, I recommend to patch your systems with the following updates :



Using ContentTypeId in CAML Query

June 28, 2013 Leave a comment

You can specify a Content Type Id in a CAML Query using the <FieldRef Name=’ContentTypeId’ /> clause. But to make this query works, you have to specify the right Value Type. Using “Text” or “Computed” mays works on some environments but fails on others…

It seems that the best choice is to use the “ContentTypeId” value type. This value type works pretty well with the Equals, or BeginsWith Condition.


           using (SPSite site = new SPSite(SiteURL))
                using (SPWeb web = site.OpenWeb())
                    SPList list = web.Lists[ListName];
                    SPQuery qry = new SPQuery();
                                    <FieldRef Name='Title'/>
                                    <Value Type='Text'>{0}</Value>
                                    <FieldRef Name='ContentTypeId'/>
                                    <Value Type='ContentTypeId'>{1}</Value>
                    var myItem=list.GetItems(qry);

This article mention main value types, but the ContentTypeId is missing there.

Thanks Pierre

I’ll be AT SPC2012, See you there ?

November 9, 2012 Leave a comment

Hi everyone,

Just a little note to say that I will be next week at the SharePoint Conference in Las Vegas.

Stay tuned for realtime info and tweets on @kerseub.



See you there

Categories: Uncategorized