How to send a file for an upload operation to REST API using web activity [Post method]

Arun Augustine 0 Reputation points
2023-03-29T03:53:44.96+00:00

I am new to ADF and Azure. I want to send a file (Json preferably) in Azure Blob Storage to a REST API for upload. I also need to retrieve the response of the upload operation. I understand that we can use Web Activity (POST method) for this, although I am not sure how to achieve the same. Looking for guidance

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,696 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. ShaikMaheer-MSFT 38,441 Reputation points Microsoft Employee
    2023-03-29T10:27:28.5766667+00:00

    Hi Arun Augustine,

    Thank you for posting query in Microsoft Q&A Platform.

    Use Lookup activity to read json of your file. Lookup activity output json will have your file json in it. Now, use web activity for your POST API call, here in request body you can pass your json from lookup activity output json.

    Please check below video for web activity to understand.

    Web Activity in Azure Data Factory

    Please check below video for lookup activity to understand.

    Lookup Activity in Azure Data Factory

    Please check below to understand how to pass values from one activity to another. This helps you to pass json from lookup activity to web activity.

    How to read JSON output of one Activity in to another Activity in Azure Data Factory

    Hope this helps. Please let me know how it goes or if any further queries.


    Please consider hitting Accept Answer button. Accepted answers help community as well.


Your answer

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