Azure Data Factory Calling a Logic App

Mike Kiser 1,531 Reputation points
2020-11-23T16:37:20.7+00:00

41954-image.png

Hi, I am calling a logic app but I need the body of the HTTP call to be dynamic, not fixed. How can this be done? Thanks!
Mike Kiser

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,854 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,601 questions
0 comments No comments
{count} votes

Accepted answer
  1. MartinJaffer-MSFT 26,031 Reputation points
    2020-11-24T20:45:41.49+00:00

    Hello @Mike Kiser and thank you for your question.

    You can use pipeline expressions in the body of your web activity. Suppose the date you want to use is the day the activity is run:

    @concat('{"lastRunDate":"',formatDateTime(utcnow(),'yyyy-MM-dd'),'"}')  
    

    or you want to put a parameter as the body

    @string(pipeline().parameters.preparedBody)  
    

    You can open the expression editor by clicking in the body textbox, then mousing below. (see picture)
    42250-image.png
    To change an expression, once you have entered one, just click the body textbox again.
    42311-image.png


0 additional answers

Sort by: Most helpful