Using property restrictions in your KQL queries, you can restrict your search to only pull back certain things like calendar events for instance. This is a very powerful way to limit search results and get exactly what you are looking for. You can use these in your query like this: " lunch contentclass:STS_ListItem_Events " This will return only calendar events with the word "lunch" in them. Pretty powerful and pretty simple. Here is a list of available content class items: STS_Site – Site Collection STS_Web – Site (Web) STS_List_850 – Page Library STS_ListItem_850 – Page STS_List_DocumentLibrary – Document Library STS_ListItem_DocumentLibrary – Document Library Items STS_List – Custom List STS_ListItem – Custom List Item STS_List_Links – Links List STS_ListItem_Links – Links List Item STS_List_Tasks – Tasks List STS_ListItem_Tasks – Tasks List Item STS_List_Events – Events List STS_ListItem_Events
I ran into a strange issue today when using the SharePoint 2013 REST API for Lists with Managed Metadata columns but I just had a ‘clever workaround’ moment with SharePoint’s oData/REST implementation when it comes to filtering list items based on taxonomy (managed metadata) columns. Now I do not consider myself a developer, so this article is probably a little verbose for some readers, but should be helpful to power users or IT pros. 1. To filter the Taxonomy columns in SharePoint list using Rest API call we need to use the Post method. 2. The Rest API call will give errors some times when the Rest API Query string crosses limit 260 characters that time we will use the Query in the body. Those things are clearly explained in the below example clearly. 3. WE can use the CAMEL Query in the Rest API call this example come under that. < script src = "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" ></ script > < script > $(do
Contents: 1. Reading data from the Excel sheet. 2. Connecting to SharePoint Online Site & Checking the SharePoint list is available or not. 3. Creating the SharePoint Library Folders and Sub Folders. 4. Conclusion. 1. Reading data from the Excel sheet: a. Open Visual Studio, Select New Project Creation and Select C# Console application and provide the appropriate Solution name. b. First add the required references like below. I . using Microsoft.SharePoint.Client; II. using System.Configuration; (Used to read the data from the App.config file) III. using Microsoft.Office.Interop.Excel; (Excel supported file reference) Note: If above references and not able to add please install the references from the NuGet Package Manager Console. To Read the values from the App.config file use the below and declare all the fields globally for re-usability. public static string userName = ConfigurationManager.AppSettings[ "Username&qu
Comments
Post a Comment