2 things:
this code would only work in an Interface, not an expression used elsewhere (as mentioned by Krishna Chaitanya previously). If you look up the documentation for a!refreshVariables, it tells you that all optional parameters are ignored when…