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 -> …
Etiqueta: all
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
Cambiar el Logo de SharePoint de todos los Sites
Podemos cambiar el típico logo azul de SharePoint (situado arriba a la izquierda) de todos nuestros sites con el siguiente comando a través de Power Shell: (get-spsite http://mySite.com.AllWeb)s | foreach { $_.SiteLogoUrl = "/_layouts/15/images/NewLogo.jpg"; $_.Update()}
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 = …
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
SharePoint Calendar – View All Resources By Default
If we create a calendar for resource reservation may not be able to see the items created, because each time we enter this list you must select which resources you want to see. To show you all we have to create the default calendar as follows: 1. Create New Group Calendar. Before click the "Create" …
Sigue leyendo SharePoint Calendar – View All Resources By Default