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

Eliminar una columna de todas las listas via Power Shell

Puede ocurrir que al crear una Site Column y agregarla a un Content Type, nos hayamos equivocado en algún parámetro (el campo Required, por ejemplo). Hemos decidido borrar la columna y para ello la borramos del Content Type y procedemos a eliminarla de las columnas de sitio. No obstante, si tenemos listas que utilicen ese …

Sigue leyendo Eliminar una columna de todas las listas via Power Shell

SharePoint 2013: Stop Crawls using PowerShell

Run this Script in PowerShell to stop all your Crawls: Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "Search Service Application" | ForEach-Object {$_.StopCrawl()} You could also start full Crawls on every Content Source changing the StopCrawl command like this: Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "Search Service Application" | ForEach-Object {$_.StartFullCrawl()}

Disable input ENTER key in Chrome, FireFox, IE (including IE8), etc. by Javascript & JQuery

In order to disable the ENTER key in your textbox type input, you have to add the 'onkeydown' attribute and call a javascript function that checks the key and avoid to submit the form when you press ENTER key. Input example <input name="myName" type="text" value="Search" onclick="eraseInitialText(this);" onkeydown="disableEnter();"> Javascript function function disableEnter() { var key = …

Sigue leyendo Disable input ENTER key in Chrome, FireFox, IE (including IE8), etc. by Javascript & JQuery

Retrieve User Profile Properties using Client Object Model in SharePoint 2013

I've found an interesting link about how to retrieve some properties of user profiles in SharePoint 2013 by using its client object model, like this: const string serverUrl = "http://serverName/"; const string targetUser = "domainName\userName"; ClientContext clientContext = new ClientContext(serverUrl); PeopleManager peopleManager = new PeopleManager(clientContext); string[] profilePropertyNames = new string[] { "PreferredName", "Department", "Title" }; …

Sigue leyendo Retrieve User Profile Properties using Client Object Model in SharePoint 2013