View source: R/analytics-report.R
sf_copy_report | R Documentation |
Creates a copy of a custom, standard, or public report by sending a POST request to the Report List resource.
sf_copy_report(report_id, name = NULL, verbose = FALSE)
report_id |
|
name |
|
verbose |
|
list
representing the newly cloned report with up to 4 properties
that describe the report:
Report type along with the URL to retrieve common objects and joined metadata.
Unique identifiers for groupings and summaries.
Fields in each section of a report type plus filter information for those fields.
Additional information about summaries and groupings.
Other Report functions:
sf_create_report()
,
sf_delete_report()
,
sf_describe_report()
,
sf_describe_report_type()
,
sf_execute_report()
,
sf_list_report_fields()
,
sf_list_report_filter_operators()
,
sf_list_report_types()
,
sf_list_reports()
,
sf_query_report()
,
sf_run_report()
,
sf_update_report()
## Not run:
# only the 200 most recently viewed reports
most_recent_reports <- sf_report_list()
# all possible reports in your Org
all_reports <- sf_query("SELECT Id, Name FROM Report")
# id of the report to copy
this_report_id <- all_reports$Id[1]
# not providing a name appends " - Copy" to the name of the report being cloned
report_details <- sf_copy_report(this_report_id)
# example of providing new name to the copied report
report_details <- sf_copy_report(this_report_id, "My New Copy of Report ABC")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.