0

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.

Rafael
  • 3,096
  • 1
  • 23
  • 61

1 Answers1

2

Try:

outlb <- get_business_outlook()
emls_from_folder <- outlb$get_folder("name_of_folder")$list_emails()
Nicolás Velasquez
  • 5,623
  • 11
  • 22