Sharepoint API
Before using the Sharepoint API
An Azure App needs to be created. If you haven't done so already, follow these instructions. Register an Azure app
Assign Sharepoint permissions - see below for instructions
To use Rest APIs, install the requests pip package by adding
requests==2.28.1
to requirements.txt file. Instructions: https://learn.dataplane.app/create-a-data-pipeline#update-python-packages
Assign Sharepoint API permissions to your Azure App
a. Select API permissions
b. Add a permission
c. Find Sharepoint
d. Select Application Permissions - this allows a server side application to interact with the Sharepoint API.
Select permissions that is needed
Sites.FullControl.All - allows the creation of a Sharepoint site
Sites.ReadWrite.All - allows reading and writing files to a Sharepoint site.
Run the APIs in Dataplane's code editor
To use Dataplane's code editor, see https://learn.dataplane.app/create-a-data-pipeline#write-and-test-python-code
Last updated