Running Azure Function in Azure Data Factory with get param is not working

Magnus 26 Reputation points
2022-05-07T16:02:23.07+00:00

Hi!
I have a problem with running an Azure Function in Azure Data Factory.

The Azure function is triggered by a http request and has one GET parameter called name. In my code I do different things depending on that get parameter. At the moment I have an if clause.

199892-vsbudgetdetail.png

If I run this in Visual Studio passing in the parameter "budgetdetail" it works fine.

Then I want to call this from Azure Data Factory. If I change my code with no if clause it works fine. It runs the code perfectly from Azure Data Factory. But when I have the if clause then it just skips the if clause and finish the function with succeded.

I added get headers for my get function

199838-fetchx.png

What am I doing wrong here?

Please help!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Magnus 26 Reputation points
    2022-05-08T12:53:15.187+00:00

    I solved it! Just changed GET to POST

    {"name":"budgetdetail"}

    1 person found this answer helpful.

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.