Rafael
Rafael

Reputation: 3196

list emails from specific folder with Microsoft365R's list_emails

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

Answers (1)

Nicol&#225;s Velasquez
Nicol&#225;s Velasquez

Reputation: 5898

Try:

outlb <- get_business_outlook()
emls_from_folder <- outlb$get_folder("name_of_folder")$list_emails()

Upvotes: 2

Related Questions