Issue: Microsoft PowerApps UpdateContext Function Not Working.
Suppose that you are trying to use a PowerApps Canvas App button in order to update a DataCardValue in a particular new form inside of your PowerApp such as your Canvas PowerApp. However something you may run into is that the UpdateContext function may not seem to be working for your use case. Suppose you want to take an existing value of a particular DataCardValue, and, say, do something simple like increase it by 1 when a button is pressed.
PowerApps UpdateContext Not Working Possible Solutions
You may have tried:
UpdateContext({DataCardValueSubject77: DataCardValue77.Text + 1})
*note – pseudocode – not intended to be exact or accurate – just to illustrate the general idea
Maybe you tried leaving out the .Text part but without much success in that regard. Maybe you went wild and even tried something like using the Sum function with another label like AddPlusOne label, so you might end up with something like the following:
UpdateContext({DataCardValueSubject77: Sum(DataCardValue77.Text, AddPlusOne.Text)})
*note – pseudocode – not intended to be exact or accurate – just to illustrate the general idea
You may be dealing with a variety of DataCardValue values that could be either empty or that end up having a zero (0) inside of these card values. You may have considered it being OK to put in zeroes (0’s) as a potential default value in your case and that this may have been fine with you just to get it to work.
Even if you got very far, you may end up getting the following issue as well:
“Incompatible type. We can’t evaluate your formula because the context variable types are incompatible with the types of values in other places in your app.”
We can help with the above issue as well. Please continue reading for the actual solutions to your PowerApps problems so you can become more productive with Power Platform and PowerApps.
PowerApps UpdateContext Not Working Actual Solution
We have actual solutions for your issue where you encountered “PowerApps UpdateContext Not Working” for your case. We have two options for you that are available right now, with Option 2 probably being better for you:
-
-
- Option 1: PowerApps Training Courses – but we cannot guarantee this issue will be covered in our PowerApps training courses. We do offer PowerApps Canvas App Training courses as well as PowerApps Portals training and much more.
- Option 2: Custom PowerApps Consulting or custom PowerApps Training on the topic of ‘PowerApps UpdateContext Not Working’ in your specific case – please use the just mentioned link, then fill out and submit the form, in order to get help on this specific UpdateContext issue for your specific PowerApps use case as soon as possible.
-