milesb
milesb

Reputation: 101

Azure Data Factory - Parameter interpolation

I'm trying to add a pipeline parameter into the body of a post request to an Azure Function app in Azure Data Factory. It appears that the string isn't getting replaced, but the Microsoft documentation suggests I'm doing it the right way. See here: https://learn.microsoft.com/en-gb/azure/data-factory/control-flow-web-activity#request-payload-schema

This is a screenshot of an error I'm getting alongside it:

enter image description here

I'm confused as to how to proper interpolate pipeline parameters into this request

Thanks!

Upvotes: 0

Views: 549

Answers (1)

NiharikaMoola
NiharikaMoola

Reputation: 5074

As mentioned in this document, wrap your parameter inside braces @{pipeline().parameters.ParameterName}.

Below is the example with my sample API post body:

{

            "tourist_name": "@{pipeline().parameters.name}",
            "tourist_email": "@{pipeline().parameters.email}",
            "tourist_location": "@{pipeline().parameters.location}"
}

enter image description here

Upvotes: 3

Related Questions