Podemos filtrar nuestra búsqueda de SharePoint por items del tipo Site Page utilizando el filtro de Content Class y el valor STS_ListItem_WebPageLibrary. Tan solo debemos incluir en nuestra query (o query template): contentclass:STS_ListItem_WebPageLibrary No hay una lista "oficial" por parte de Microsoft para los Content Class pero podéis encontrarla aquí: https://lodesharepoint.com/lista-de-content-class-en-sharepoint
Etiqueta: listitem
Lista de Content Class en SharePoint
No hay una lista “oficial” por parte de Microsoft para los Content Class pero aquí tenéis los STS disponibles (Ejemplo: contentclass:STS_Site): STS_Site – Site CollectionSTS_Web – Site (Web)STS_List_850 – Page LibrarySTS_ListItem_850 – PageSTS_List_DocumentLibrary – Document LibrarySTS_ListItem_DocumentLibrary – Document Library ItemsSTS_List – Custom ListSTS_ListItem – Custom List ItemSTS_List_Links – Links ListSTS_ListItem_Links – Links List ItemSTS_List_Tasks – …
Crear Item en Lista de SharePoint usando CSOM
A través de una aplicación de consola podemos crear items en una lista utilizando la librería cliente de SharePoint: string siteUrl = "https://mytenant.sharepoint.com/sites/mysite"; using (ClientContext clientContext = new ClientContext(siteUrl)) { SecureString passWord = new SecureString(); foreach (char c in "myPassword".ToCharArray()) passWord.AppendChar(c); clientContext.Credentials = new SharePointOnlineCredentials("myMail@myDomain.com", passWord); List oList = clientContext.Web.Lists.GetByTitle("myList"); ListItemCreationInformation itemCreateInfo = new ListItemCreationInformation(); …
Detectar si se ha publicado un ítem en una lista con Event Receiver en SharePoint
Para poder detectar si se ha publicado un ítem en una lista no existe ningún evento del tipo "ItemPublished", pero si tenemos el evento "ItemCheckedIn" que nos avisará cada vez que se haga un CheckIn del elemento. Para saber si es una publicación o no podemos seguir estas indicaciones: Dentro del event receiver obtenemos el …
Sigue leyendo Detectar si se ha publicado un ítem en una lista con Event Receiver en SharePoint