Skip to main content
Known Participant
May 20, 2023 6:17 AM UTC
Solved

Refresh Variable not refreshing expression rule Data

Hi 

I am trying to refresh my Data stored in the expression. There is link which stores true, false in local!refreshBool and I want to refresh the data based on that. This expression rule pulls data from Integration.

But the Data is not getting refreshed. When I TEST interface the data is refreshed but not when I click on link

 

local!data: rule!TA_getAndFormatRandomUser(),
  
  local!refreshBool,
  local!refreshData: a!refreshVariable(
    value: local!data,
    refreshOnReferencedVarChange:  local!refreshBool
  ),

stefanhelzle0001
Brainy
May 25, 2023 9:24 AM UTC

In that expression, add a refresh configuration to local!allData. Either set refreshallways=true or use that boolean.

9 replies

stefanhelzle0001
Brainy
May 20, 2023 8:46 AM UTC

That's a weird construct. Why do you expect refreshData to change, when local!data stays the same. You have to add the refreshVariable to local !data.

Known Participant
May 20, 2023 4:15 PM UTC

Thanks for the response Stefan.  have tried with local!data as well but it's not refreshing 

a!localVariables(
  local!refreshBool,
  local!data: a!refreshVariable(
    value: rule!TA_getAndFormatRandomUser(),
    refreshOnVarChange:   local!refreshBool
    ),

mikes0011
Brainy
May 21, 2023 1:26 AM UTC

What is inside your expression rule?

The Expression Guru