A través de una aplicación de consola podemos crear items en una lista utilizando la librería cliente de SharePoint: string...
Debemos crear un fichero BAT (.bat) en la misma ruta de la DLL que queremos firmar. DEL .\SIGNED_LIBRARY.* /F "C:\Program...
Este fragmento de código nos permite hacer una llamada a un Web Service REST mediante la librería RestSharp. var client...
Podemos convertir strings, chars y arrays entre si de estas formas: string -> string[] (Todo el string en un...
A través de esta función podemos obtener la URL para ver las propiedades de un item de una lista de...
Una interesante herramienta para crear facilmente PDFs desde HTML: NReco PdfGenerator. 1. Creamos nuestro HTML string html = "MY_HTML"; 2....
SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite site = new SPSite("YOURSITE")) { using (SPWeb web = site.OpenWeb()) { //Obtain the page PublishingPageCollection publishingPages...
Unpublish and Checkout SharePoint Page: SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite site = new SPSite("YOURSITE")) { using (SPWeb web = site.OpenWeb()) {...
This is a function in order to create a CAML Query specified for Filters. Once we have the filters, we’ve...
My case: It’s a standard register form created in a SharePoint WebPart (but this error could happen even if you’re...