Azure data factory web activity body

Accelerator 1 Reputation point
2020-11-10T04:14:56.33+00:00

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.
10,586 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Vaibhav Chaudhari 38,721 Reputation points
    2020-11-10T04:58:14.53+00:00

    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
    2020-11-10T13:11:38.613+00:00

    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.