Filtrar Búsqueda de SharePoint por Site Pages (Web Page Library Item)

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

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  – …

Sigue leyendo Lista de Content Class en SharePoint

Obtener y filtrar listas de SharePoint en SPFx con @pnp/sp

Con la libreria SP de PNP podemos obtener facilmente las listas de un site de SharePoint y filtrarlas, un ejemplo de una función que podemos incluir en nuestro código y reutilizarla en función del contexto. Primero deberéis instalar la librería @pnp/sp import { Web } from "@pnp/sp"; const getLists = async(webUrl: string, selectProperties: string[], expandProperties: …

Sigue leyendo Obtener y filtrar listas de SharePoint en SPFx con @pnp/sp

Formatear una fecha en AngularJS

Si tenemos una fecha a mostrar, por ejemplo: {{item.ItemDate}} Podemos formatearla como queramos mediante: {{item.ItemDate | date: 'dd/MM/yyyy HH:mm'}} Hay una descripción completa de todas las opciones de formato en la documentación de Angular: https://docs.angularjs.org/api/ng/filter/date Adjunto aqui también ese listado: 'yyyy': 4 digit representation of year (e.g. AD 1 => 0001, AD 2010 => 2010) 'yy': 2 …

Sigue leyendo Formatear una fecha en AngularJS

Filtrar items en funcion de un valor externo en AngularJS

Si tenemos una lista/tabla de elementos y queremos aplicar un filtro dependiendo de un valor externo a esa lista/tabla (por ejemplo un dropdown), podemos crear nuestro propio filtro a aplicar. Ejemplo: Filtrar Items de una tabla en funcion de un dropdown Paso 1: Crear el dropdown con el filtro Accion 1: Crear los valores del dropDown …

Sigue leyendo Filtrar items en funcion de un valor externo en AngularJS

CAML Query Auto-Created in C# with Loops

This is a function in order to create a CAML Query specified for Filters. Once we have the filters, we've to create the parameters for the function, following this template: Parameters Template Name1|Type1|Operation1|Value1,Name2|Type2|Operation2|Value2... [Operation property can only be "Equal" or "Contains", 'cause that's what I need, but it can be modified] Example Title|Text|Contains|Document,Category|Choice|Equal|Docs [Filter items …

Sigue leyendo CAML Query Auto-Created in C# with Loops