This function makes a request to retrieve metadata as a package XML files that can be modified and later deployed into an environment
sf_retrieve_metadata(
retrieve_request,
filename = "package.zip",
check_interval = 3,
max_tries = 20,
verbose = FALSE
)
a list
of parameters defining what XML file representations
should be returned
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"
numeric
; specifying the seconds to wait between retrieve
status requests to check if complete
numeric
; specifying the maximum number of times to check
whether the retrieve package.zip is complete before the function times out
logical
; an indicator of whether to print additional
detail for each API call, which is useful for debugging. More specifically, when
set to TRUE
the URL, header, and body will be printed for each request,
along with additional diagnostic information where available.
A list
of details from the created retrieve request
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