Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

spsite data query sorting

$
0
0

Hello everyone; 

I want to get last 3 posts of a blog subsite and when I sort by PublishedDate my query fails.

ex: 

 query.Query = "<OrderBy>" +
                           "<FieldRef Name=\"PublishedDate\" Ascending=\"FALSE\"/>" +
                       "</OrderBy>";

this one gives me native stack error but, If i order by with ID or Title it works. 

any solutions for this?


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>