Skip to content

How to use set-body template="liquid" to access request body json attribute? #111

@akhileshnirapure

Description

@akhileshnirapure

Hi,

The official documentation mentions that set-body can access request body here https://learn.microsoft.com/en-us/azure/api-management/set-body-policy#using-liquid-templates-with-set-body

"The set-body policy can be configured to use the Liquid templating language to transform the body of a request or response. This can be effective if you need to completely reshape the format of your message."

I would like to use set-body to access the request body json and extract specific property, so that It can be use to craft request body for another request.

How to achieve this?

I tried accessing by "body.argument.<property_name>" doesn't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions