Questions tagged [python]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
27 views

Convert the Powershell script to Python 3

I'm trying to perform an upload files from Linux to share point using Python. However I tried a lot by googling but nothing help. At last I got a power shell script that is working. So requesting for ...
0
votes
1answer
26 views

How to upload all files & sub directory in a directory to sharepoint

I'm writing an automation script to transfer files & subdirectory in a directory to SharePoint from ubuntu. And I'm able to transfer the files from in a directory but failed when uploading the ...
0
votes
0answers
13 views

Python - Not able to access company share point directory which uses single sign on for authentication

My company share point uses windows authentication and uses HTTPS I am trying to access company share point via the following code import requests from requests_kerberos import HTTPKerberosAuth, ...
0
votes
0answers
21 views

How to create sharepoint modern page using python code?

Can you please give me a sample of how to create modern page in SharePoint with webparts using python? I am able to authenticate using python to SharePoint site. I just need the API sample on how to ...
0
votes
1answer
20 views

How to create records in Sharepoint List using Display Name of columns, in Python REST?

I am trying to create new records (rows) in a Sharepoint List using a python script. I am specifying each record as a json containing the display names of columns/fields mapped to their respective ...
0
votes
1answer
53 views

Excel file is not checked in after uploading to Sharepoint with Python

I have taken the following code from other post. This is very good and working fine. import requests from requests_ntlm import HttpNtlmAuth session = requests.Session() session.auth = HttpNtlmAuth('...
0
votes
1answer
74 views

Python requests post JSON raw data in SharePoint

I want to update some property in a SharePoint ListItem. I'm using this code: body = '{"__metadata": {"type": "SP.Data.Documentos_x0020_compartidosItem"}, "Tarea": "TP 15"}' header = {'...
1
vote
2answers
249 views

How can I upload a document to a sharepoint subfolder using the REST API?

I'm using the official Office365-REST-Python-Client which basically is a wrapper to submit HTTP requests. I'm looking at the documentation and have been succesfully able to upload documents to the ...
2
votes
0answers
73 views

Create a document library in a sharepoint online site with python

I am trying to create a document library with a python script. I have tried doing it using Microsoft graph but I am having trouble doing with POST request and I didn't succeed. I also tried doing so ...
0
votes
1answer
30 views

Get the Last Modifying User of a file from the SharePoint web API

I am using python and want to make a simple request to get the last modifying user from the list of items in a document library. This is my code: import sharepy s = sharepy.connect("company....
0
votes
0answers
551 views

Not able to access content of sharepoint folders using shareplum [Python]

I've asked this question on stackoverflow too, here. But someone told me I'd have better luck on sharepoint stackexchange. I'm trying to download a few csv files that reside in a document thats part ...