Share via

How to wait for logic app completion in ADF

Priya Jha 901 Reputation points
2021-01-13T03:33:56.517+00:00

We are triggering a Logic app through an ADF web activity.
Is there any way we wait for the logic app to complete and then proceed to the next activity?
Because currently since web activity just triggers the logic app, it goes into a successful state and doesn't wait for the logic apps status and directly proceeds to the next activity within pipeline

Azure Logic Apps
Azure Logic Apps

An Azure service that automates the access and use of data across clouds without writing code.

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.


1 answer

Sort by: Most helpful
  1. MartinJaffer-MSFT 26,161 Reputation points
    2021-01-13T19:50:19.127+00:00

    Hello @Priya Jha and welcome to Microsoft Q&A.

    One option is to have your Logic app create a blob when it completes the work. Then you can have a Data Factory validation activity to check for the existence of that blob. Place the validation activity after the web activity calling the logic app. The validation activity will make the pipeline wait until either the blob exists, or it times out.

    Another option could use a webhook activity to call the Logic app instead of using a web activity. This way, the pipeline waits for the Logic app to call it back before proceeding.

    A webhook activity can control the execution of pipelines through your custom code. With the webhook activity, customers' code can call an endpoint and pass it a callback URL. The pipeline run waits for the callback invocation before it proceeds to the next activity.

    2 people found this answer helpful.
    0 comments No comments

Your answer

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