sf_get_updated: Get Updated Records from a Timeframe

View source: R/utils-org.R

sf_get_updatedR Documentation

Get Updated Records from a Timeframe

Description

[Stable]

Retrieves the list of individual records that have been inserted or updated within the given timespan in the specified object.

Usage

sf_get_updated(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 updated Contact records from midnight until now
updated_recs <- sf_get_updated("Contact", Sys.Date(), Sys.time())

## End(Not run)

salesforcer documentation built on March 18, 2022, 6:26 p.m.