Expand my Community achievements bar.

SOLVED

Typology rule to change maxRetry

Avatar

Level 2

Hello!

 

We have a special channel that we use that is basically just used as a file export. But when we run the delivery it will do 5 retries as default for the delivery as it thinks its an email-delivery. Im looking into setting up a Typology Rule where If messageType (Channel) == 143 (the channel that we use for this) we change the maxRetry to 0 instead of 5. 

 

Do you have a good idea of how this typology code could look like?

Best Regards,

Martin

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi @MartinViking 

Why would not not also create the delivery delivery template where the retry is already set to 0?

Otherwise, you have plenty of typology of type control you can inspire yourself to get the code to set the retry to the value you wish.

The syntax would be something like

if( delivery.messageType == 143)

    delivery.execution.maxRetry = 0;

You would activate this rules on the channel (messageType) 143 too

Wave Scheduling Typology Rules for sample of syntax

Denis_Bozonnet_1-1654007038127.png

 

Denis_Bozonnet_0-1654006978509.png

Hope this helps,

Thanks
Denis

 

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

Hi @MartinViking 

Why would not not also create the delivery delivery template where the retry is already set to 0?

Otherwise, you have plenty of typology of type control you can inspire yourself to get the code to set the retry to the value you wish.

The syntax would be something like

if( delivery.messageType == 143)

    delivery.execution.maxRetry = 0;

You would activate this rules on the channel (messageType) 143 too

Wave Scheduling Typology Rules for sample of syntax

Denis_Bozonnet_1-1654007038127.png

 

Denis_Bozonnet_0-1654006978509.png

Hope this helps,

Thanks
Denis