Undelete Records
Undeletes records from the Recycle Bin.
sf_undelete( ids, api_type = c("SOAP"), control = list(...), ..., verbose = FALSE )
ids |
|
api_type |
|
control |
|
... |
arguments passed to |
verbose |
|
tbl_df
of records with success indicator
Because the SOAP and REST calls chunk data into batches of 200 records the AllOrNoneHeader will only apply to the success or failure of every batch of records and not all records submitted to the function.
## Not run: new_contact <- c(FirstName = "Test", LastName = "Contact") new_records <- sf_create(new_contact, object_name = "Contact") delete <- sf_delete(new_records$id[1], AllOrNoneHeader = list(allOrNone = TRUE)) is_deleted <- sf_query(sprintf("SELECT Id, IsDeleted FROM Contact WHERE Id='%s'", new_records$id[1]), queryall = TRUE) undelete <- sf_undelete(new_records$id[1]) is_not_deleted <- sf_query(sprintf("SELECT Id, IsDeleted FROM Contact WHERE Id='%s'", new_records$id[1])) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.