Marketing Automation Reporting API
The Marketing Automation Reporting API allow callers to retrieve statistics and metrics for plans and activities.
Accessing the automation reporting client
Accessing the automation reporting client
The following example demonstrates how to access the IAutomationReportingClient in a Sitecore context:
Operations
Operations
There are synchronous and asynchronous versions of each method.
Get plan statistics
The GetPlanStatisticsAsync() method takes a list of plan IDs and returns a list of PlanStatistics objects. The example below details the statistics available:
If the system cannot find a plan by the ID given, nothing will be returned for that ID. For example, if the request includes 5 IDs and 2 IDs cannot be found, the system will only return 3 PlanStatistics instances.
Get plan report
The GetPlanReportAsync() method takes a single plan ID, a start date, and an end date, and returns a PlanReport. The start and end date affect the values of ActivityCurrentContactCount and PlanCurrentContactCount. The example below details the statistics available: