My Form stopped working after Power app released updates in July. I have multi approval power app form, where users will add approvers in a repeating section Gallery. Once the approver approves the form, details like status, date of approval and duration will be appended to the particular approver record.
Below is the code written on 'Approve' button:
UpdateIf(InitialApprover,Approver1=User().Email,{Status1:"Approve",DateofApproval1:Today(),Duration1:test1,Comments1:Text(TextInput1.Text)});
If(Text(status check)="Awaiting approval from initial Approvers",
UpdateContext (
{InitialRSDetails:Concat(InitialApprover,Concatenate(ID1,";",Title1,";",Approver1,";",Comments1,";",
Status1 ,";",Text(DateofApproval1),";", Duration1,";", "|"))}););
Here InitialApprover is the Gallery collection and InitialRSDetails is the string variable which will save in the list column.
This is not working now, instead when approver clicks on Approve button entire InitialRSDetails is becoming null.
What is Text(status check)?
At a glance, that seems incorrect. Typically named references won't allow spaces. Since you're using it as a conditional check, it may not ever be set. You should consider having that variable have a default, by either adding a conditional else branch that also does an UpdateContext, or move the condition into the UpdateContext() block, so it always updates the context, but does it conditionally.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
185 | |
46 | |
46 | |
34 | |
33 |
User | Count |
---|---|
255 | |
86 | |
79 | |
68 | |
67 |