sf_copy_report {salesforcer} | R Documentation |
Copy a report
Description
Creates a copy of a custom, standard, or public report by sending a POST request to the Report List resource.
Usage
sf_copy_report(report_id, name = NULL, verbose = FALSE)
Arguments
report_id |
|
name |
|
verbose |
|
Value
list
representing the newly cloned report with up to 4 properties
that describe the report:
- attributes
Report type along with the URL to retrieve common objects and joined metadata.
- reportMetadata
Unique identifiers for groupings and summaries.
- reportTypeMetadata
Fields in each section of a report type plus filter information for those fields.
- reportExtendedMetadata
Additional information about summaries and groupings.
Salesforce Documentation
See Also
Other Report functions:
sf_create_report()
,
sf_delete_report()
,
sf_describe_report_type()
,
sf_describe_report()
,
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()
Examples
## 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)