79601993

Date: 2025-05-01 14:11:53
Score: 2.5
Natty:
Report link

This is solved now. It was a process.
1 Created variables for every piece of the Patch(). That did not work.
2 What' going on with the variables?
3 Created Text boxes for the variables and then created a gallery to see the record target for the patch(). Everything Displayed correctly. That did not work. How could variables, ALL correct not allow the patch()?
4 Asked for help in a DOD chat for coders.
5 Someone provided a solution that used the control.text properties set in #2 above.

That worked. Crazy! They said it has something to do with Power Apps being Async. and maybe the variables not being fully baked. Even though you can see the correct values in the controls in the boxes before you even pressed the buttons. I used other controls to set the variables and populate the boxes. Because I thought it was an Order of Operations issue. So that should have made the variables resolve and display their values. So when I pushed the Submit button to get results using just variable set beforehand, somehow did not work; only picking up the Control.Text values worked.

I guess if your patch() is acting up maybe try setting variables, create text boxes to hold the variables, the use the control.Text property to pull the Text properties directly in the Patch(). That is the only difference between the code I submitted in OP and the solution.

Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Kevin