Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
0 like 0 dislike
7.8k views
in Power Apps by 39 47 54
I am working with Canvas app and I have a global variable  how to reset or clear the global variable in PowerApps ?? I Want to clear the variable or make it empty

1 Answer

2 like 0 dislike
by 48 54 93
selected by
 
Best answer

Clear Global Variable in PowerApps

The simplest way to reset or clear a global variable in Power Apps is to use the Set function.
Using the Set function helps you to assign a new value or empty value to the variable.

How to use the Set function in Power Apps?

To use the SET function to clear a variable in PowerApps, you have to use the below formula:

Set(YourVariable, Blank())

See Also PowerApps Variables Types : Context Variable Vs Global Variable Vs Collections

by 39 47 54
0 0
You made my day, thanks alot
If you don’t ask, the answer is always NO!
...