azureazure-data-factory

The Format of Body for a POST request in Web Activity in Azure Data Factory


I have created a web activity in azure data factory pipeline which have only one header and I have to pass body for a POST request. I have tried passing body as JSON and as String also but the request failed with "Invalid Query". Can anyone please tell me how can I send a POST request from azure data pipeline with additional header and body. I have multiple key value pairs to pass to body.Check the Screenshot of web activity


Solution

  • Please try this. First, add one more header with Name of Content-Type and value of application/x-www-form-urlencoded

    Then change the Body to:

    grant_type=password&username={username}&password={password}&scope=customer-api