Hi @javier ,
Welcome to Microsoft Q&A Platform. Thanks for posting the query.
The issue is because it is not able to read the variable value and to consider evaluating the entire expression as a string, Please try passing the variables expression in double quotes as shown below or if its a string value you can use casting to string. I tested and it worked for me.
{"name":"@variables('test')"}
Please let us know if the issue persists and we will be glad to assist further.
----------------------------------------------------------------------
- Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
- Want a reminder to come back and check responses? Here is how to subscribe to a notification.