'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://docs.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:
I'm confused as to how to proper interpolate pipeline parameters into this request
Thanks!
Solution 1:[1]
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}"
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | NiharikaMoola-MT |