Crear Lookup Site Column desde Power Automate/Logic App con SharePoint REST API

Action: Send an HTTP request to SharePoint Endpoint: _api/web/fields/addfield Body: { 'parameters': { '__metadata': { 'type': 'SP.FieldCreationInformation' }, 'FieldTypeKind': 7, 'Title': 'MemberAssociation', 'LookupListId': '3a47bba0-4536-4bed-92b8-3472473f351e', 'LookupFieldName': 'Title' } } Esta acción creará la Site Column pero no nos pemite añadir otros parámetros como, por ejemplo, el grupo al que pertenece la columna. Para ello podemos hacer …

Sigue leyendo Crear Lookup Site Column desde Power Automate/Logic App con SharePoint REST API

Añadir columnas Read-Only a Lookup Site Column desde Power Automate/Logic App con SharePoint REST API

Action: Send an HTTP request to SharePoint Endpoint: _api/web/fields/adddependentlookupfield(displayname='FIELD NAME', primarylookupfieldid='LOOKUP FIELD ID', showfield='FIELD NAME') Headers: { "Accept": "application/json;odata=verbose", "Content-Type": "application/json;odata=verbose" }

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

Add WebService to my project (ASMX + CS) in Visual Studio

I've never found on my Visual Studio an option to directly add a new WebService file so I looked for a solution and I got this one, I hope it'll help you:1. From anywhere in your Solution Explorer (where you want to add the WebService), create a "New Item".2. In the "New Item" Window, select …

Sigue leyendo Add WebService to my project (ASMX + CS) in Visual Studio