Reputation: 3196
Is there anyway to specify a folder instead of just listing the emails in the Inbox?
Example for listing items in the Inbox:
library(Microsoft365R)
outlb <- get_business_outlook()
emlst <- outlb$list_emails()
Can't find anything in the docs about how to point this to a folder.
Upvotes: 0
Views: 164
Reputation: 5898
Try:
outlb <- get_business_outlook()
emls_from_folder <- outlb$get_folder("name_of_folder")$list_emails()
Upvotes: 2