by
Ismael Cruz
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(); […]
by
Ismael Cruz
Caso Tenemos un formulario Infopath con llamadas REST para obtener valores que utilizamos en Dropdowns. Al crear un nuevo item en la lista de SharePoint funciona. Al editar ese item no podemos guardarlo, nos genera un error. Test Si quitamos las llamadas REST, no se produce el error. Solución En Infopath vamos a las opciones […]
by
Ismael Cruz
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 […]
by
Ismael Cruz
Windows PowerShell: New-ItemProperty HKLM:SystemCurrentControlSetControlLsa -Name "DisableLoopbackCheck" -Value "1" -PropertyType dword
by
Ismael Cruz
Para poder detectar si se ha publicado un ítem en una lista no existe ningún evento del tipo “ItemPublished”, pero si tenemos el evento “ItemCheckedIn” que nos avisará cada vez que se haga un CheckIn del elemento. Para saber si es una publicación o no podemos seguir estas indicaciones: Dentro del event receiver obtenemos el […]
by
Ismael Cruz
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 […]
by
Ismael Cruz
When you create a custom Display Template and you deploy it, you can see the HTML uploaded, but you can’t see its JS (created automatically in theory). Problem: You don't have the correspondent JS of your HTML Display Template Solution: 1. Access to your Site with SharePoint Designer 2. Go To: All Files -> _catalogs […]
by
Ismael Cruz
If we couldn’t acces to the menu item “Edit Page” for any reason and we want to edit that page (e.g. to remove some webpart that blocks our page) we’ve to add one parameter at the end: contents=1 Then, the URL would be like this: http://misyte.com/mysubsite/Pages/default.aspx?contents=1 By dong this we’ll access to a standard SharePoint […]
Buscar
Últimos Posts
- Normalizar acentos en Javascript (y Typescript)
- Añadir estilos en un WebPart SPFx para los temas de Teams (Default, Dark, High Contrast)
- Llamar a una función asíncrona dentro del hook useEffect en React Function Components
- Crear Team Site en SharePoint Online Sin Office 365 Group con PnP PowerShell
- Obtener Template PnP de un Site
Categorías
Active Directory
AngularJS
ASP.NET
BAT Files
Boundaries
C#
Central Admin
Client-Side
Contents
CSS
Custom Code
Entity Framework
Errors
Event Receivers
File Formats
HTML
HttpModule
Hyper-V
IIS
iOS
Javascript
JQuery
LOG
Look and Feel
Mac OS X
Modern Sites
Office 365
Performance
PnP
PowerQuery
PowerShell
React
Search
SharePoint Online
SharePoint OnPrem
SPFx
SQL
Terminal
TFS
Typescript
User Profiles
VBA
Visual Studio
Windows Server
Workflows