0

I want to call an Azure logic app from Azure python based HTTP trigger function. Here is the end line (returning statement) of my python function which is returning expected value:

        return func.HttpResponse(successres)
    else:
        return func.HttpResponse(failedsres)

Now I want to call a HTTP trigger based logic app with passing 'successres' as JSON body.

Any help will be great.

1 Answers1

1

Create a callable endpoint for your App and call it.

Some more details here.

Kashyap
  • 15,354
  • 13
  • 64
  • 103
  • Thanks @Kashyap for the response. However my question is that only "How to call it". I know how to create a callable endpoint but not sure how to call it as function ends with a return statement. – vivek mishra Feb 13 '21 at 09:44
  • @vivekmishra That part would be a simple http call with appropriate headers/auth etc. See [this question](https://stackoverflow.com/questions/17301938/making-a-request-to-a-restful-api-using-python) for some examples and RTM (steps 7 & 8 in "details here" link above) for authentication etc. – Kashyap Feb 18 '21 at 17:28