Skip to content

Commit 7294840

Browse files
authored
Merge pull request #108556 from tehnoonr/patch-12
Update set-body-policy.md
2 parents 9e3274f + cd63e16 commit 7294840

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

articles/api-management/set-body-policy.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ The `set-body` policy can be configured to use the [Liquid](https://shopify.gith
100100
> [!IMPORTANT]
101101
> In order to correctly bind to an XML body using the Liquid template, use a `set-header` policy to set Content-Type to either application/xml, text/xml (or any type ending with +xml); for a JSON body, it must be application/json, text/json (or any type ending with +json).
102102
103+
> [!IMPORTANT]
104+
> Liquid templates use the request/response body in the current execution pipeline as their input. For this reason, liquid templates do not work when used inside a return-response policy. A return-response policy cancels the current execution pipeline and removes the request/response body. As a result, any liquid template used inside the return-response will receive an empty string as its input and will not produced the expected output.
105+
103106
### Supported Liquid filters
104107

105108
The following Liquid filters are supported in the `set-body` policy. For filter examples, see the [Liquid documentation](https://shopify.github.io/liquid/).
@@ -268,4 +271,4 @@ The following example uses the `AsFormUrlEncodedContent()` expression to access
268271

269272
* [API Management transformation policies](api-management-transformation-policies.md)
270273

271-
[!INCLUDE [api-management-policy-ref-next-steps](../../includes/api-management-policy-ref-next-steps.md)]
274+
[!INCLUDE [api-management-policy-ref-next-steps](../../includes/api-management-policy-ref-next-steps.md)]

0 commit comments

Comments
 (0)