sf_retrieve_metadata {salesforcer} | R Documentation |
Make A Request to Retrieve the Metadata
Description
This function makes a request to retrieve metadata as a package XML files that can be modified and later deployed into an environment
Usage
sf_retrieve_metadata(
retrieve_request,
filename = "package.zip",
check_interval = 3,
max_tries = 20,
verbose = FALSE
)
Arguments
retrieve_request |
a |
filename |
a file path to save the zip file in the event that it is downloaded. The name must have a .zip extension. The default behavior will be to save in the current working directory as "package.zip" |
check_interval |
|
max_tries |
|
verbose |
|
Value
A list
of details from the created retrieve request
Note
See the Salesforce documentation for the proper arguments to create a retrieveRequest. Here is a link to that documentation: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_retrieve_request.htm
References
https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_retrieve.htm
Examples
## Not run:
retrieve_request <- list(unpackaged=list(types=list(members='*',
name='CustomObject')))
retrieve_info <- sf_retrieve_metadata(retrieve_request)
## End(Not run)