SharePoint View CAML [Me] query not returning items belonging to me even though I’m logged on as… Me.

The short answer…  When creating a view through code that targets a field of type “User”, the following CAML will not work <Where><Eq><FieldRef Name=”MyUserField” /><Value Type=”User”>[Me]</Value></Eq></Where> nor this <Where><Eq><FieldRef Name=”MyUserField” LookupId=”True” /><Value Type=”User”>[Me]</Value></Eq></Where> nor this <Where><Eq><FieldRef Name=”MyUserField” LookupId=”True” /><Value Type=”Lookup”>[Me]</Value></Eq></Where> this works <Where><Eq><FieldRef Name=”MyUserField” /><Value Type=”Integer”><UserID Type=”Integer” /></Value></Eq></Where> The long answer… I recently created a…

1

Auto collapse multi-valued refiners in the SharePoint 2013 search refinement panel

My client asked if it was possible to auto-collapse the refinement panel and I thought to myself…  that should be a setting right?  Probably something that I had just never used or needed, it’s got to be there.  No. So I found this great post that gives some good instruction on how to modify Filter_Default.html…

11

"Invalid provider type specified." when using a high trust cert that was created with CNG in a Provider Hosted App

The short solution:  When generating a cert to be used for high trust in a Provider Hosted application, choose “(no template) Legacy key”, Microsoft RSA SChannel Cryptographic Provider. The longer explanation: In my continuing journey with Provider Hosted applications, I’ve run into a new issue that is documented in other areas of Microsoft technology, but not…

0

Taxonomy fields return as Dictionaries using the Client Objcet Model in SharePoint 2013

Recently, a collegue of mine and I ran into this issue. The Problem: Let’s assume you execute the following code against one of your SharePoint lists that contains taxonomy fields List oList = cc.Web.Lists.GetByTitle(listName);CamlQuery camlQuery = newCamlQuery();camlQuery.ViewXml = caml;ListItemCollection collListItem = oList.GetItems(camlQuery);cc.Load(collListItem);cc.ExecuteQuery(); Firstly, we’ll assume (and you must),  you’ve added a reference to Microsoft.SharePoint.Client.Taxonomy.  Without a…

2

Greetings!

Hello everybody, I am a software engineer, designer, developer and technologist in general.  I’ve been doing this professionally for about oh… 26 years (Yike!) and have been with Microsoft for almost 3 years.  I’ve owned a software company, led numerous development projects, been a DBA, managed project schedules, development teams, etc. etc. ad infinitum.  Assembler and COBOL to C++,C# and everything in between, this platform,…

0