When working with external agencies, the broad logs are updated after a while. From the ACC client, itβs possible to recompute the delivery stats, but hereβs how to update it automatically in Javascript.
πππ
Javascript code
var nmsDeliveryDirtyFlags_tracking = 1; // tracking logs (1)
var nmsDeliveryDirtyFlags_messageCounters = 8; // broad logs (1)
var flags = nmsDeliveryDirtyFlags_tracking | nmsDeliveryDirtyFlags_messageCounters; // bit operation (2)
NLWS.nmsDelivery.RecomputeStats(vars.deliveryId, flags);
nmsDeliveryDirtyFlags_tracking
andnmsDeliveryDirtyFlags_messageCounters
come from the schemanms:delivery
in thedirtyFlags
enumeration.- The pipe
|
is a bit operation to sum 1 (0001) and 8 (1000) which results in 9 (1001).