Avatar

Level 4

Hi @rohanpat,

If you are able to insert records into the nms:broadLogRcp and nms:broadLogMsg schemas correctly, then the last thing you need to do is execute the RecomputeStats method of the nms:delivery schema.

Specifically for updating the error stats, below is the syntax

nms.delivery.RecomputeStats(73061911,2); // first parameter is the delivery Id, second parameter is the integer (enum) value for the type of stats to update.

 

Details on this page: https://docs.adobe.com/content/help/en/campaign-classic/technicalresources/api/sm-delivery-Recompute...

 

For updating both tables in one workflow, you need to first insert records with relevant fields in the nms:broadLogMsg schema first, and then using the primary key returned in the targetSchema from this step, insert records into the nms:broadLogRcp schema with the remaining relevant fields. See the flow below. This might help.

broadLogMsg_Rcp.png

Cheers,

Ishan