Skip to main content
May 20, 2023
Solved

Refresh Variable not refreshing expression rule Data

  • May 20, 2023
  • 9 replies
  • 0 views

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
  ),

Best answer by stefanhelzle0001

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

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.

May 20, 2023

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

What is inside your expression rule?

The Expression Guru