- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hello, we have three different sendout Templates: Email, SMS and a Template that uses an API to export customers to a internal page.
In the Delivery schema we have a default on MaxRetry = 5. This works fine with the Email and SMS, but when we do the third one we don't want any retries at all as it causes issues.
for each (var record in records.getElements())
{
if(record.$deliveryChannel == 143){
/*logInfo("broadLogID",record.$id);
logInfo("broadLogStatus",record.$status);
logInfo("deliveryId",record.$deliveryId);
logInfo("deliveryChannel",record.$deliveryChannel);
logInfo("msgReason",record.$msgReason);
logInfo("msgText",record.$msgText);*/
sqlExec("UPDATE NmsBroadLogRcp SET iStatus=$(l) WHERE iBroadLogId=$(l)", setBroadLogStatus, record.$id);
sqlExec("UPDATE NmsDelivery SET iState=$(l) WHERE iDeliveryId=$(l)", setDeliveryStatus, record.$deliveryId);
sqlExec("UPDATE NmsDelivery SET iMaxRetry=$(0) WHERE iDeliveryId=$(1)", setMaxRetry, record.$maxRetry);
}
}
What I thought could be a good solution is to use the code that handles the post-processings for this specific sendout and set the MaxRetry to 0. But when I look at the delivery/execution/MaxRetry after this code is run, it is still on 5.
Do you have any suggestions for a better solution or something that I should change in my code that will make this work?
Best Regards, Martin
Solved! Go to Solution.
Views
Replies
Total Likes