sf_delete_report_instance(report_id, report_instance_id, verbose = FALSE)
character
; the Salesforce Id assigned to a created
analytics report. It will start with "00O"
.
character
; the Salesforce Id assigned to a
created analytics report instance (an asynchronous run). It will start with
"0LG"
.
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.
logical
indicating whether the report instance was deleted. This function
will return TRUE
if successful in deleting the report instance.
Other Report Instance functions:
sf_get_report_instance_results()
,
sf_list_report_instances()
if (FALSE) {
# first, get the Id of a report in your Org
all_reports <- sf_query("SELECT Id, Name FROM Report")
this_report_id <- all_reports$Id[1]
# second, ensure that report has been executed at least once asynchronously
results <- sf_execute_report(this_report_id, async=TRUE)
# check if that report has succeeded, if so (or if it errored), then delete
instance_list <- sf_list_report_instances(this_report_id)
instance_status <- instance_list[[which(instance_list$id == results$id), "status"]]
}