Typology rule to change maxRetry | Community
Skip to main content
Level 2
May 31, 2022
Solved

Typology rule to change maxRetry

  • May 31, 2022
  • 1 reply
  • 665 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by costa_n11

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

 

Hope this helps,

Thanks
Denis

 

1 reply

costa_n11Adobe EmployeeAccepted solution
Adobe Employee
May 31, 2022

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

 

Hope this helps,

Thanks
Denis