Reputation: 101
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:
I'm confused as to how to proper interpolate pipeline parameters into this request
Thanks!
Upvotes: 0
Views: 549
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}"
}
Upvotes: 3