SharePoint CAML query Orderby does not support descending attribute.? -
Trying to get data from the SharePoint list using the CAML query.
Feeling deserving, do not do the desired work.
Please find the code below. The above code still receives the smallest ID (where the id is 1,2,3 ..), in my case this ID = 1 Thanks in advance. AFAIK, there is no "descending" attribute to specify a descending order. Instead, you have to use the ascending attribute, and "false" must be specified as values. As you can see ascending - optional boolean specifies sort order on a FieldRef element Defined in a scene. The default value is TRUE. & lt; Order B & gt; & Lt; FieldRef name = 'id' Descending = 'True' / & gt; & Lt; / OrderBy & gt;
& lt; OrderBy & gt; & Lt; FieldRef name = 'id' ascending = 'FALSE' /> & Lt; / OrderBy & gt;
Comments
Post a Comment