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: web
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 – …
Configurar Microsoft Graph API en SPFx
Primer paso: Añadir el recurso en package-solution (Resource y Scope): { "$schema": "https://dev.office.com/json-schemas/spfx-build/package-solution.schema.json", "solution": { "name": "spfx-package", "id": "8s13d6v9-d221-468d-22e4-2d207b966cd2", "version": "1.0.0.0", "includeClientSideAssets": true, "skipFeatureDeployment": true, "webApiPermissionRequests": [ { "resource": "Microsoft Graph", "scope": "User.ReadBasic.All" } ] }, "paths": { "zippedPackage": "solution/spfx-package.sppkg" } Segundo Paso: Aprobar los permisos desde el Admin Center de nuestro tenant (Advanced -> …
Script Editor Web Part para Modern Pages en SharePoint Online
Para todos aquellos que hemos trabajado con Script Editors en SharePoint Online veremos que ya no tenemos esa opción en el nuevo diseño de Microsoft basado en React. Podéis encontrar su equivalencia en el propio GitHub de Microsoft que "devuelve" este componente para los Modern Sites: https://github.com/SharePoint/sp-dev-fx-webparts/tree/dev/samples/react-script-editor La solución ha sido creada por Mikael Svenson, …
Sigue leyendo Script Editor Web Part para Modern Pages en SharePoint Online
Web Platform Installer: The product cannot be installed because a product that it depends on did not install successfully
Este error aparece tras algún fallo en la instalacion de software en Web Platform Installer. Solución: Borrar en el navegador (sí, en el navegador) caché, ficheros temporales, etc... y volver a abrir el Web Platform Installer.
Obtener Datos de Servicio REST con RestSharp
Este fragmento de código nos permite hacer una llamada a un Web Service REST mediante la librería RestSharp. var client = new RestClient("REST_SERVICE_URL"); client.Authenticator = new HttpBasicAuthenticator("USER", "PASSWORD"); var request = new RestRequest(Method.GET); request.RequestFormat = DataFormat.Json; IRestResponse response = client.Execute(request); var content = response.Content;
Obtener URL de la página de propiedades de un item
A través de esta función podemos obtener la URL para ver las propiedades de un item de una lista de SharePoint: public static string GetItemPropertiesURL(SPListItem item) { string web = item.Web.Url; string listID = item.ParentList.ID.ToString(); string contentType = item.ContentTypeId.ToString(); string itemID = item.ID.ToString(); string url = web + "/_layouts/listform.aspx?PageType=4&ListID={" + listID + "}&ID=" + itemID …
Sigue leyendo Obtener URL de la página de propiedades de un item
Cambiar MasterPage via PowerShell
Para cambiar la MasterPage de SharePoint por PowerShell tan solo debemos abrir la consola de SharePoint (SharePoint Management Shell) como administradores y ejecutar: $web = Get-SPWeb http://MY_SITE.com $web.CustomMasterUrl = "/_catalogs/masterpage/MY_MASTER.master" $web.MasterUrl = "/_catalogs/masterpage/MY_MASTER.master" $web.Update() También podemos crearnos un fichero ".ps1" para tener el script guardado y ejecutarlo (Siempre como administrador).
Aumentar Umbral de Vistas de Listas en SharePoint
1. Vamos a la Central Administration 2. Manage Web Applications 3. Seleccionamos la Web Application que necesitemos 4. En la Ribbon, abrimos el desplegable de General Settings y seleccionamos Resource Throttling 5. Aumentamos el umbral en List View Threshold
Event Receiver en SharePoint (Teoría e información)
Tenemos 5 tipos de Event Receivers para programar en SharePoint: SPEmailEventReceiver (Para los emails) SPFeatureReceiver (Para las características) SPItemEventReceiver (Para los elementos de las listas/librerías) SPListEventReceiver (Para las listas/librerías) SPWebEventReceiver (Para los sites y site collections) Cada uno de ellos tienen unos métodos específicos que podemos implementar para realizar acciones: SPEmailEventReceiver 1.1. EmailReceived (Cuando un …
Sigue leyendo Event Receiver en SharePoint (Teoría e información)