SharePoint: Tipos de Lista (ID + Nombre)

100   Generic list101   Document library102   Survey103   Links list104   Announcements list105   Contacts list106   Events list107   Tasks list108   Discussion board109   Picture library110   Data sources111   Site template gallery112   User Information list113   Web Part gallery114   List template gallery115   XML Form library116   Master pages gallery117   No-Code Workflows118   Custom Workflow Process119   Wiki Page library120   Custom grid for a list130   Data Connection library140   Workflow History150   Gantt Tasks list200   Meeting Series list201   Meeting Agenda list202   Meeting Attendees list204   Meeting Decisions list207   Meeting Objectives list210   Meeting text box211   Meeting Things To Bring list212   Meeting Workspace Pages …

Sigue leyendo SharePoint: Tipos de Lista (ID + Nombre)

Sharepoint Online: La navegación ha desaparecido (Quick Launch)

Puede ocurrir que la navegación del Site desaparezca debido a otros procesos (el más común que hemos encontrado es al utilizar SharePoint Migration Tool que en algunos sites cambiaba el título y la navegación). Esto se debe a una Property del Site que se setea a FALSE, para solucionarlo tan solo debemos actualizarla. Podemos hacerlo …

Sigue leyendo Sharepoint Online: La navegación ha desaparecido (Quick Launch)

Error: The file PS1 is not digitally signed. You cannot run this script on the current system.

Error: .\FILE.ps1 : File C:\FILE.ps1 cannot be loaded. The file C:\FILE.ps1 is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170. Fix (Bypass): Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass [Bypass policies] Nothing is blocked and there are no warnings …

Sigue leyendo Error: The file PS1 is not digitally signed. You cannot run this script on the current system.

Microsoft Graph API – Syntax error: character ‘*’ is not valid at position 0

Error: { "error": { "code": "BadRequest", "message": "Syntax error: character '*' is not valid at position 0 in '*'.", "innerError": { "request-id": "aa4dd443-8100-46d4-8d3d-da83ac969266", "date": "2018-10-02T08:41:03" } } Posible Motivo: Estamos utilizando una de las variables que aparece en la documentacion, por ejemplo 'search' de este modo: https://graph.microsoft.com/v1.0/sites?$search=* Solución: Utilizar la variable directamente mediante su nombre, …

Sigue leyendo Microsoft Graph API – Syntax error: character ‘*’ is not valid at position 0

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

Sigue leyendo Configurar Microsoft Graph API en SPFx

SharePoint – Mostrar Descripción de un Campo en el Layout

Podemos mostrar la description Out-of-the-Box de un campo en un layout con dos lineas: Primero, debemos asegurarnos de tener registrado el namespace de WebControls en nuestro Layout: <!--SPM:<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>--> Y segundo, debemos incluir la siguiente linea por cada campo que queramos: <!--MS:<SharePoint:FieldProperty FieldName="FIELD_NAME" PropertyName="Description" runat="server">--><!--ME:</SharePoint:FieldProperty>-->

Subir Fichero en SharePoint Online desde SPFx via JSOM (React + Typescript)

Podemos subir un fichero (Hasta un máximo de 2Mb) desde nuestro Client WebPart en SharePoint Framework a través de JSOM. Para ello debemos añadir un fichero, procesarlo e incluirlo en la librería, siguiendo estos pasos:   Debemos obtener el fichero que queremos subir, ya sea mediante alguna librería de terceros (como dropzone.js) o con un …

Sigue leyendo Subir Fichero en SharePoint Online desde SPFx via JSOM (React + Typescript)

Subir Fichero a una Carpeta en SharePoint Online desde SPFx via JSOM (React + Typescript)

Para saber como subir un fichero a una librería de SharePoint podéis seguir el anterior post donde se explica paso a paso: Subir Fichero en SharePoint Online desde SPFx (React + Typescript) Para subirlo al Root Folder hacemos: let fileToUpload = docs.get_rootFolder().get_files().add(fci); Si queremos subirlo a una carpeta, podemos simplemente navegar hasta ella antes de añadir …

Sigue leyendo Subir Fichero a una Carpeta en SharePoint Online desde SPFx via JSOM (React + Typescript)

SharePoint Online – Obtener User Properties en Page Layout sin llamadas Asíncronas

Podemos obtener las propiedades por medio de un control llamado ProfileProperty. 1 Registrar el namespace <!--SPM:<%@ Register Tagprefix="PortalWebControls" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="Microsoft.SharePoint.Portal, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>--> 2 Cargar el control <!--SPM:<PortalWebControls:ProfilePropertyLoader runat="server" />--> 3 Añadir una linea por cada propiedad (Mantenemos la clase Out-of-the-Box ms-hide para ocultarlas) <!--SPM:<PortalWebControls:ProfilePropertyValue CssClass="ms-hide" PropertyName="MY_PROPERTY_NAME" ApplyFormatting="False" runat="server" ShowPrivate="True" PrefixBrIfNotEmpty="False" />--> Nota: En …

Sigue leyendo SharePoint Online – Obtener User Properties en Page Layout sin llamadas Asíncronas

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(); …

Sigue leyendo Crear Item en Lista de SharePoint usando CSOM