logic app how to add the condition of exit for next job

Azure-learning 56 Reputation points
2022-09-14T18:26:35.14+00:00

I am using logic app to run two jobs (job 1, job2 ) in sequence . when first job1 completes then only it should move to second job2.

I have a condition in which first job1 is coming under Exit condition ,further execution stops in job 1 as per the cod e flow. and ideally it should not move to job 2 .because first job is terminating in Exit. but Logic app is showing this as success and joob1 completed and job2 is getting executed.

Please let me know how to restrict the job2 to skip the run if job1 completed in Exit .

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

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,941 Reputation points Moderator
    2022-09-20T05:38:29.63+00:00

    @NGaur-3476 Thanks for reaching out. I will suggest you to refer the run history of your logic app to check what is the different output from your job1. Based on the output of the job1 (for the successful execution or failed execution) you should now leverage the condition action to determine whether your job2 should be executed or not based on the condition that you have define after reviewing the output of your job1 action.

    In case if you are not able to figure out what condition you need to specify then please share the output for your job1 action (both successfully executed/failed execution) so I can review it and help you with the condition that can help with your business need.

    0 comments No comments

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.