Writing CAML queries can sometimes make your head hurt. Not because it’s terribly complicated, but because there’s not much useful information out there that demonstrates, with REAL examples, how these should be written. So let’s see if we can clarify this: Scenario 1 Get me all items in a list WHERE fullName equals the currently logged in user. 1 2 3 4 5 6 7 8 9 10 11 SPWeb web = SPControl. GetContextWeb ( Context ) ; string fullName = web. CurrentUser . Name ; SPQuery oQuery = new SPQuery ( ) ; oQuery. Query = "<Where>" + "<Eq><FieldRef Name='FullName'/><Value Type='Text'>'" + fullName + "'</Value></Eq>" + "</Where>" + "<OrderBy><FieldRef Name='StartTime' Ascending='FALSE'></FieldRef></OrderBy>" ; Scenario 2 Get me all items in a list WHERE fullName equals the currently...
Angular, Javascript, HTML 5, CSS, Enterprise solutions. Expertise in Office 365, SharePoint Online, SharePoint 2013, Azure, MVC, Angular JS, KnockOut, Kendo UI, .Net Core. Asp.Net MVC, Web API, Angular 6, Azure AD, Azure Web App, Sql Server 2008, Bootstrap 3, HTML5, CSS3.