Hi everyone,
I facing an issue with global variables and the refresh() function. I hope someone can help.
The overall idea is that I only want to change my list name once in a global variable and it gets used everywhere in the app.
In my onStart I initialize a global variable to be set to the SharePoint List connection of my app and refresh it.
Set(SPList, 'Test List');
Refresh(SPList)
Now I would assume that everytime I use the "SPList" variable it uses the cached SPList data in the app.
It works fine for formulas and conditions.
But as soon as I do a Refresh(SPList) anywhere in the app, in a button or an onVisible, the function simply does nothing.
It won't get the new information of the SharePoint. If I reload the whole app it works. 😐
Anyone maybe got an idea what I'm doing wrong or why it's not working like that?
Greetings