Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question/Feature Request: download SharePoint List attachment #53

Open
leungi opened this issue May 11, 2021 · 1 comment
Open

Question/Feature Request: download SharePoint List attachment #53

leungi opened this issue May 11, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@leungi
Copy link

leungi commented May 11, 2021

Scenario: user adds a record in SharePoint List and upload files as attachment.

Goal: be able to download attachments into an R session.

Current State

Able to show that attachments exist, but no method to list attachments' URL or download them.

SharePoint attachments don't seem to be stored in any of the drives either, so can't get from there.

my_site <- Microsoft365R::sharepoint_site(
  site_url = config::get("sp_site"),
  app = AzureGraph:::.az_cli_app_id
)

data_raw <- my_site$get_list("List")$list_items()

data_raw %>%
  select(id, Attachments)

# _List_ showing attachments
#>   id Attachments
#> 1  7       FALSE
#> 2  8        TRUE

# _List_ folder showing empty even though it has attachments
my_site$get_drive()$list_files()
                     name     size isdir
1                 General 16643828  TRUE
2                    List        0  TRUE
3           Weekly Report 12600039  TRUE
4            Untitled.png     8835 FALSE
@hongooi73 hongooi73 added the enhancement New feature or request label May 11, 2021
@hongooi73
Copy link
Collaborator

This isn't yet possible with the Graph API. I'll look into it when this changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants