Hot answers tagged

4

You will need to add where condition and use <Today> token in your caml query. The query will be like as below <OrderBy> <FieldRef Name='StartDate' Ascending='True'/> </OrderBy> <Where> <Geq> <FieldRef Name='EndDate' /><Value Type='DateTime'><Today /></Value> </Geq> ...


1

You don't need to pass count as a parameter as you can get it from queries Inside the method RecursiveNestedOr itself (also, rename parameter query as queries). Otherwise, your recursion looks fine to me. Here's how I'd "simplified" it, using LINQ (add using System.Linq): public static string RecursiveNestedOr(IEnumerable<string> queries) { ...


1

The following example shows how to retrieve all of the files in a folder. url: http://site url/_api/web/GetFolderByServerRelativeUrl('/Folder Name')/Files method: GET headers: Authorization: "Bearer " + accessToken accept: "application/json;odata=verbose" or "application/atom+xml" Does this help? Source


1

Am I crazy or should you need Get, not Post? url: query, method: "POST", headers: {


1

I can confirm that this architecture can work. I have developed multiple SharePoint 2013 custom visual web parts that utilize single page Angularjs apps to display their data in the past and recently I had to use Angularjs in conjunction with SharePoint 2010 too. Usually, my web parts have to display tabular data, and for this reason I found out that the ...


1

By using code from How to build a CAML query with several nested OR's using a loop and its answser http://sharepoint.stackexchange.com/a/167266/35604, you can easily simplify your code. Now you have all these methods that help you building nested Or and And queries, simply do this: List<string> queries = new List<string>(); if ...



Only top voted, non community-wiki answers of a minimum length are eligible