Share via

Azure data factory web activity body

Accelerator 1 Reputation point
Nov 10, 2020, 4:14 AM

How do I use parameters in the body of Push method in data factory? It seems to allow static values or a parameter but not both.
Say I want my message body as {"count" :@Kritivasas }

But this isn't working, any ideas

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,441 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Vaibhav Chaudhari 38,901 Reputation points
    Nov 10, 2020, 4:58 AM

    I can't try this but see if below expression work

    {
    "count": "@{variables('YourVariableNameHere')}"
    }


    Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav

    1 person found this answer helpful.

  2. HarithaMaddi-MSFT 10,136 Reputation points
    Nov 10, 2020, 1:11 PM

    Hi @Accelerator ,

    Welcome to Microsoft Q&A Platform. Thanks for posting the query.

    In the web activity body, without using dynamic content option, please copy the syntax as below and let me know if it works. I reproduced and it worked for me as below.

    {"count":"@variables('count')"}  
    

    38804-expressionwebactivityadf.gif

    Ref: issue

    Please suggest if issue persists and we will be glad to assist further.

    ----------------------

    • Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification.
    1 person found this answer helpful.
    0 comments No comments

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.