View source: R/analytics-report.R
sf_delete_report_instance | R Documentation |
If the given report instance has a status of Success
or Error
,
delete the report instance.
sf_delete_report_instance(report_id, report_instance_id, verbose = FALSE)
report_id |
|
report_instance_id |
|
verbose |
|
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()
## Not run: # 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"]] ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.