cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Issue with Update context after July power apps release

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.

1 REPLY 1
GarethPrisk
Resident Rockstar
Resident Rockstar

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.

 

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (3,533)