Questions tagged [microsoft365r]
22 questions
2
votes
1 answer
Microsoft365R get_business_outlook: "Forbidden (HTTP 403). Failed to complete operation. Message: Insufficient privileges to complete the operation."
I am trying to access a shared mailbox that I have read/write permissions for through my business outlook account, using Microsoft365R's get_business_outlook function.
library(Microsoft365R)
tenant_id <- "example_tenant_id"
email <-…

joewozza
- 57
- 5
1
vote
1 answer
createTcpServer: address already in use Error in initialize(...) : Failed to create server
I'm writing scripts in R.
Please do not remove my question as I checked and this is certainly (and unfortunately) one of a kind.
I'm a newbie data analyst and I was trifling around with learning how to send emails, and I tried using the blastula…

CataLiNa
- 11
- 3
1
vote
1 answer
Embedding images in an e-mail with Microsoft365R
I'm trying to send an email with the Microsoft365R package.
There's an embedded image I need in it. I've tried two ways:
library(Microsoft365R)
emails <- c("myemail@example.com")
for(i in emails){
my_outlook <- get_business_outlook()
my_email <-…

iago nunes
- 56
- 9
1
vote
0 answers
Unable to connect outlook in Microsoft365R: Error in curl::curl_fetch_memory(url, handle = handle)
When I run, from the Microsoft365R library:
outlb <- get_business_outlook()
I get:
Loading Microsoft Graph login for default tenant
Error in curl::curl_fetch_memory(url, handle = handle) :
Send failure: Connection was reset
The first line of the…

Luke Martin
- 11
- 1
1
vote
0 answers
How to use the resource_owner grant within Microsoft365R
I'm trying to implement an unattended script accessing files within OneDrive using Microsoft365R.
I've setup everything like in the docs using the default app registration.
The interactive flow with auth_type="device_code" works without issues:
odb…

Manuel
- 11
- 2
1
vote
1 answer
Connecting to Sharepoint using Microsoft365R error
I am trying to connect to sharepoint to load excel files within an unattended R script using the package Microsoft365R
I have created the app within Azure, and assigned it permissions. I have been able to successfully connect to a users onedrive and…

Vine
- 395
- 3
- 13
0
votes
0 answers
I keep getting an error when there is a folder that already exists with the same name - R- Microsoft365R
this is my code:
uploadOD <- function(filePath, destFold) {
# Connect to the user's OneDrive for Business
odb <- get_business_onedrive()
# Get the base name of the destination folder
destFolderName <- basename(destFold)
# Get the…

SaiFB12
- 1
0
votes
0 answers
"By" parameter in list_emails() not working
Is the "by" parameter in the list_emails() not working for anyone else?
I've tried both "received" and "received desc", and they return the same email:
library(Microsoft365R)
my_outlook <- get_business_outlook()
email <- my_outlook$list_emails(by =…

iago nunes
- 56
- 9
0
votes
0 answers
Microsoft365R Package, working with onedrive, uploading file to odb from local machine, run into JSON error
Trying to move files from local drive to onedrive, running this command:
odb$upload_file("test.R","C:\Users\B1*****\OneDrive -******\rTestDest")
I keep getting this error:
Error in process_response(res, match.arg(http_status_handler), simplify)…

SaiFB12
- 1
0
votes
0 answers
Replacing a Locked Excel File on Microsoft SharePoint using R and Microsoft365R
I am trying to replace an Excel file on Microsoft SharePoint with another local file using R and the Microsoft365R package. The issue arises when the Excel file on SharePoint is open online by another user, which results in an error when attempting…

Marc
- 1
0
votes
0 answers
microsoft365r email "send as"
I would like to send emails using "send as". Is that possible in microsoft365r? If so, how?
In the outlook app, I can select "new mail", "from" and change the user. Is it possible to change the user using microsoft365r?
ex.…

whogan
- 1
- 1
0
votes
1 answer
React to a Teams message using Microsoft365R
I want to add a heart reaction to a Microsoft Teams message using the Microsoft365R R package.
I sent a message to a channel like this:
library(Microsoft365R)
library(magrittr)
# Authenticate to Azure active directory
# This tells microsoft 365R…

Russ
- 1,385
- 5
- 17
0
votes
0 answers
Microsoft365R create_shareable_link() for individual access
Running into a conundrum, and was hoping someone may be able to assist.
At work, I want to send an email to a group of people. These people provide source data to my organization, and deliver their data through SharePoint Site folders. While the…

James Crumpler
- 192
- 1
- 8
0
votes
0 answers
Adding "Expiration Date" to email send with Microsoft365R
Does anybody know whether there is a possibility of adding an Expiration-Date to the email that is send with Microsoft365R?
I have the following lines of code and would like the message to be removed from the receiver's inbox after a specific…

Jochem
- 3,295
- 4
- 30
- 55
0
votes
1 answer
Microsoft365R outlook function, multiple recipients returns error
I am attempting to draft and send emails in MS Outlook using the Microsoft365R package in RStudio. Using R4.2.2 with the latest related package updates.
This function used to work around November 2021, but I want to avoid using deprecated…

jaramana
- 67
- 1
- 8