Logic App recurrence trigger

prajakta nawale 1 Reputation point
2020-08-10T09:22:39.86+00:00

I have a requirement where we need to schedule a logic app at 1.15 pm and then there is a gap of 2 hours , next scheduled time will be 3,3.30,4,4.30 subsequently. Using Recurrence trigger.

How will I achieve this using recurrence trigger in the logic app

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,197 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pramod Valavala 20,636 Reputation points Microsoft Employee
    2020-08-10T13:11:31.7+00:00

    This can be achieved with a combination of the following configuration of the trigger and a trigger condition.

    recurrence-trigger-configuration

    Here is the trigger condition

       @{if(equals(split(split(trigger().scheduledTime, 'T')[1],':')[0],13),if(equals(split(split(trigger().scheduledTime, 'T')[1],':')[1],15),true,false),if(equals(split(split(trigger().scheduledTime, 'T')[1],':')[1],15),false,true))}  
    

    Here is the same trigger condition expanded for readability

       if(  
         equals(  
           split(  
             split(trigger().scheduledTime, 'T')[1],  
             ':'  
           )[0],  
           13  
         ),  
         if(  
           equals(  
             split(  
               split(trigger().scheduledTime, 'T')[1],  
               ':'  
             )[1],  
             15  
           ),  
           true,  
           false  
         ),  
         if(  
           equals(  
             split(  
               split(trigger().scheduledTime, 'T')[1],  
               ':'  
             )[1],  
             15  
           ),  
           false,  
           true  
         )  
       )  
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.