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 […]
Action: Send an HTTP request to SharePoint Endpoint: _api/web/fields('FIELD_ID') Headers: { "Content-Type": "application/json;odata=verbose", "IF-MATCH": "*", "X-Http-Method": "PATCH" } Body: { '__metadata': { 'type': 'SP.FieldLookup' }, 'Group': 'YOUR GROUP NAME' }
Nota: Al final de la explicación está el código entero para copy-paste. Nota: Si no lo ejecutamos directamente desde la SharePoint Management Shell debemos añadir su SnapIn: Add-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction […]
This is a function in order to create a CAML Query specified for Filters. Once we have the filters, we’ve to create the parameters for the function, following this template: […]