SSJS function Tracking.TotalByInterval.Retrieve() does not work in business units
Trailblazer Community

SSJS function Tracking.TotalByInterval.Retrieve() does not work in business units

Marketing Cloud Email Studio

Last updated 2019-05-10 ·Reference W-4608595 ·Reported By 1 users

No Fix

Summary
The SSJS function Tracking.TotalByInterval.Retrieve() only returns results at the enterprise level. Using this function at the business unit level will return 0 results.

Repro
Set up a triggered send and send to it. Run the below in a microsite.

Platform.Load("Core","1");
var tsd = TriggeredSend.Init("{the key to your triggered send}");
var results = tsd.Tracking.TotalByInterval.Retrieve("Send", "{today}", "{tomorrow}", "day");
Write(Stringify(results));

Note it returns 0 results.

Workaround
Run reports, tracking extracts, or SQL query activities to pull back tracking results.

Reported By (1)

Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.