Skip to main content

SharePoint: Did you know that......CAML Query OrderBy not working???

So this one time I was creating a SharePoint view programmatically, whose items I wanted to be ordered as "Most recent item must be top". This meant ordering by the "Created" column in descending order.

So I used the following query:





And I wondered why this was not working. After a lot of research, I found that actually, its CASE SENSITIVE...aaarrrrgggghhh!!!

False is supposed to be FALSE, and the query should be:





And there you have it. I hope this will save someone some time.

Comments

Popular posts from this blog

Zambia's first K2 BlackPoint roll-out

Reporting to you live from Code|Influence... My colleague and I have been managing our organization's SharePoint infrastructure for some time now and we have just rolled out the first K2 BlackPoint in the country, intended mostly for SharePoint workflow developments.

How to document your SharePoint Projects.

Here are the essential documents you need to complete… Initiation Business Case: To justify the financial investment in your SharePoint Project, you need to write a Business Case. It lists the costs and benefits, so everyone knows what the return on investment will be. Feasibility Study: Before you kick-off your SharePoint Project, you need to determine whether your project is feasible, using a Feasibility Study. SharePoint Project Charter: You then need to document the objectives, scope, team, timeframes and deliverables in a SharePoint Project Charter. Planning SharePoint Project Plan: You need to create a Project Plan listing all of the tasks required to undertake your SharePoint Project from start to finish. Every task must be scheduled, so you know what needs to be done and when. Resource Plan: Next, you need to plan your resources by documenting the money, equipment and materials needed for your SharePoint Project. Quality Plan: You then need to set quality targets, so that the S...