Message in Contact Points (Teams)

Hello guys, good morning for you reading this.

Basically I’m trying to show the value of a variable in the default message at “contact points”.
The contact form I’m using is “Teams” and the alert itself is working very well, that is, it sees the variable but I can’t call it in the message, the code of alert is this (InfluxQL):

from(bucket: “MyBucket”)
|> range(start: v.timeRangeStart, stop:v.timeRangeStop)
|> filter(fn: (r) => r._field == “msg.payload.variable”)

The condition is: When last value of this code is above 0 so fire the alert. This is working fine, but, when i go in “contact points” and inform the message of this “alert” the value of the variable is null, no value arrives, it is completely empty, I am stating exactly that in the message:

The current value of the variable is: {{ msg.payload.variable }}

So, can someone please help me?