"Order By" using a parameter for the column name

How to parametrize column for ORDER BY in SQL / Lambda query.
ORDER BY :myParam does not seem to work for me.

Thanks.

1 Like

Hi Magicpai,

Attribute names are not supported as Query Lambda parameters in order to protect against SQL injection attacks. If you need this level of customization in your query, an alternative would be to use standard query endpoint.

Regards,
Patrick