Can anybody tell me how to do this? None of the examples I have found seem to work.
My site is https://blah.sharepoint.com/technology and my list is called 'pfa'. I want to add some text columns.
I DO have connectivity with SharePoint Online via my Powershell, as I have managed to get some results back from various commands.
Thanks.
How to provision field in SharePoint Online via CSOM in PowerShell
CSOM API comes with:
to add a list or site column.
The example below demonstrates how to add
GeoLocation
field intoContacts
List:How to provision field in SharePoint Online via REST in PowerShell
Endpoints:
The article Consuming the SharePoint 2013 REST API from PowerShell describes how send HTTPS requests to SharePoint REST web services.
Using the Invoke-RestSPO function from the article, the following example demonstrates how to add Note field to List using REST API in PowerShell:
References