-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Download Attachment Body Content #20
Comments
@rgustavs The Salesforce documentation is here: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_sobject_blob_retrieve.htm Below is a function I've written called
|
@rgustavs If you'd like to download all of the attachments at once, then use
|
wow! thanks for quick response. I will try this first thing in the morning and revert back to you. |
Works like a charm. Many thanks. Also appreciate the login_url fix. Early adopters, needed the following libraries library(tidyverse) |
@rgustavs The function I prototyped above has now been included in the latest CRAN version of the package (0.1.3) |
Hi
Thank you for a great package. Very useful to me.
I would like to download attachment and I am struggling with the final step.
Here is what I do
sf_auth() b <- sf_query("SELECT Body, Name, Id FROM Attachment WHERE ParentId = 'XX'")
and I get a list of references back
>glimpse(b)
Body <chr> /services/data/v42.0/sobjects/Attachment/00P5700001SCWgXXXX/Body"
Name <chr> "Doc.pdf"
Id <chr> "00P570000X"
How do I download Doc.pdf which is hiding inside /services/data/v42.0/sobjects/Attachment/00P5700001SCWgXXXX/Body?
The text was updated successfully, but these errors were encountered: