Questions tagged [python-o365]

A simple python library to interact with Microsoft Graph and Office 365 API

A simple python library to interact with Microsoft Graph and Office 365 API

16 questions
0
votes
0 answers

How to send link as body and store that as hyper link when we look at microsoft calendar window (small window without expanding)

I am using below pease of code to create calendar event and event is getting created. If i do single click over the event it is opening small popup window there we can see link as text where in bigger window if we expand then it is link. small…
0
votes
1 answer

I'm having trouble with [504 Server Error: Gateway Timeout for] with Graph API

I'm trying to use O365 (Python) to calculate an excel file located on OneDrive. But it results in "504 Server Error: Gateway Timeout for" due to the large size of the file. In the browser, the result is obtained by calculating the sheet in order…
0
votes
0 answers

How to get "deleted" Outlook Calendar Events

I am using O365 for automated calendar events processing and trying to find a way to list "deleted" events. According to this text deleted events are availabe for 14 day. However I cannot find the proper way to code this in O365. Am I overlooking…
0
votes
1 answer

Marking emails as read in Outlook using O365 and Python

I am trying to mark emails as read in Outlook using the O365 library and Python. I am using the message.is_read property to mark the message as read, but it doesn't seem to be working. The messages are still being returned as unread every time I run…
0
votes
2 answers

Python O365 library detect encrypted Emails

I am trying to detect if incoming emails to my O365 account is encrypted or not. The email sender can use any email provider like Gmail, Outlook, Yahoo etc. At the moment i am able to detect encrypted message from outlook with below…
lorem_bacon
  • 165
  • 1
  • 10
0
votes
0 answers

Python O365 library get mailbox folder child

I am using library O365 to read emails. I am trying to read emails from a specific folder, for example Inbox/Test1 I have the following code working: account = Account(credentials, auth_flow_type='credentials', tenant_id=tenant_id,…
0
votes
1 answer

How to access calendar events of shared calendars via o365 and Microsoft Graph API?

I have successfully been able to access my own calendar events by registering an app in Azure and calling the Microsoft Graph API via o365. Here is the code I've been using, thanks to an article I found online: from O365 import Account,…
0
votes
0 answers

Python O365 email query API combining search query and dates range

I am looking for a way to query o365 inboxes with both search and date ranges. The API ignores the date ranges all together and referring only to the search query. Currently I am using this code: query:Query =…
yople
  • 1
  • 2
0
votes
1 answer

Pull data from excel into Python

I am working on a menu app and I need it to be dynamic. I am having trouble figuring out how I would be able to pull data from an excel sheet into my 'menu_dictionary' value. I want to be able to change the prices without having to manually change…
0
votes
1 answer

Is there a way to skip python-O365 Account authentication or make it possible to complete it on a UI?

I want to read outlook emails and save the attachments, and I'm using python-O365 module for that. The problem is this module requires account authentication in order to access outlook. The workflow is in this way: User accesses the function/api,…
Abhinav
  • 125
  • 6
0
votes
0 answers

Python get list of o365 users through MS Graph. Missing infomtion

from O365 import Account credentials = ('hidden', 'hidden') # the default protocol will be Microsoft Graph account = Account(credentials, auth_flow_type='credentials', tenant_id='hidden') users_list=[] directory = account.directory() for…
Harry
  • 1
  • 3
0
votes
0 answers

Download attachments from outlook mail using o365 library:

I have used following code to download attachments from outlook using o365 library.I need pdf, jpg, png all kinds of attachment. But not only attachments , images added in the message body (Not attachments) are also downloading. I don't need image…
0
votes
0 answers

how to move a mail from one folder to another folder in outlook using o365 library?

I am trying to move a mail from Inbox to another folder. I have made authentication and successfully logged into the account using o365 library. But not getting how to move a mail?
0
votes
0 answers

Program stalls on "DEBUG Starting new HTTPS connection (1): login.microsoftonline.com:443" only when executed via cron

I'm using the python-O365 library in order to access my O365 mailbox. The project requires me to execute the program in a docker container. If I start the program manually (as root), everything works fine, but if I try to start it via cron, it…
Jonas
  • 1
  • 1
0
votes
1 answer

problem with the query of getting all-day type events on a day from microsoft calendar by O365

I have an issue with the query of getting all-day type events on a day from Microsoft calendar using O365 library. Actually, I'm going to fetch the events on a specific day by a query, and the problem is I get an extra all-day event from the…
Benyamin Jafari
  • 27,880
  • 26
  • 135
  • 150
1
2