How to return error response from Webhook in Logic app and keep webhook active until it successfully processes response?

时间:2018-02-01 18:02:04

标签: azure-logic-apps

I have logic app with webhook action where it waits until it receives callback notification from my other application.

This other application sends the payload in a notification callback provided by webhook.

I need to validate this payload before I resume the logic app's execution with next step.

If validation fails, then I don't want webhook to unsubscribe. I want webhook active until it successfully receives response.

1 个答案:

答案 0 :(得分:0)

您可以在中间安装验证器Logic App。

  • 您将当前的主要逻辑应用保留在创建的Webhook中 回调网址并等待批准或拒绝。
  • 您的审批应用(通过回调网址获取请求)现在调用中间验证器逻辑应用,而不是调用回调网址。 审批应用会将审批响应和回调网址作为请求的一部分发送给验证器逻辑应用
  • 然后,验证码逻辑应用将响应批准应用,状态为:valid / invalid。只有当它有效时,才会调用主逻辑应用的回调网址。

HTH