Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

sf_get_deleted

Get Deleted Records from a Timeframe


Description

Maturing lifecycle

Retrieves the list of individual records that have been deleted within the given timespan for the specified object.

Usage

sf_get_deleted(object_name, start, end, verbose = FALSE)

Arguments

object_name

character; the name of the Salesforce object that the function is operating against (e.g. "Account", "Contact", "CustomObject__c").

start

date or datetime; starting datetime of the timespan for which to retrieve the data.

end

date or datetime; ending datetime of the timespan for which to retrieve the data.

verbose

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.

Note

This API ignores the seconds portion of the supplied datetime values.

Examples

## Not run: 
# get all deleted Contact records from midnight until now
deleted_recs <- sf_get_deleted("Contact", Sys.Date(), Sys.time())

## End(Not run)

salesforcer

An Implementation of 'Salesforce' APIs Using Tidy Principles

v0.2.2
MIT + file LICENSE
Authors
Steven M. Mortimer [aut, cre], Takekatsu Hiramura [ctb], Jennifer Bryan [ctb, cph], Joanna Zhao [ctb, cph]
Initial release
2020-09-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.