web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Update different field...
Power Apps
Unanswered

Update different field in same record (switch)

(0) ShareShare
ReportReport
Posted on by 36

Hi all, 
Apologies in advance if this is confusing. I'm newer to apps, and from my Flow experience I know I'd use a condition or switch for what I'm trying to accomplish, just not sure how to translate that in the app.

Scenario is paperwork approvals. I've got an "approver decision" ,"submitter status", and "approver status" choice columns in SharePoint. The status columns are view only, while the decision column is actual input. The status columns are viewable in the form and a gallery.

 

Approver Decision ColumnSubmitter Status ColumnApprover Status Column
Under ReviewSubmittedNew
Action RequiredUnder ReviewUnder Review
CompleteAction RequiredAction Required
 CompleteUpdated 
  Complete



When "action required" is the decision, the submitter makes edits to their document, and then uses a toggle in the app to indicate it's been complete, then presses a save button. I'd like to be able to have the "approver status" column reflect "updated", put the submitter status back to "under review". This could go back and forth until the edits are satisfactory.

 

How do I write a switch statement for these scenarios to change all the statuses and patch them back to SharePoint? Is this possible? 

 

Thanks in advance!

Categories:
  • BCLS776 Profile Picture
    8,994 Moderator on at

    You can use a Switch statement in the OnSelect of that button to do one of several patches. Something like this:

    With({ aLookup: LookUp()}, ​// a lookup that pulls up the current record you are handling
     Switch(aLookup.'Approver Decision',
     "Under Review",
     Patch(mySPList, aLookup, {}), ​// Update records as necessary in braces
     "Action Required",
     Patch(mySpList, aLookup, {'Approver Status': "Updated", 'Submitter Status': "Under Review"},
     // Add a no-match behavior here
     )
    )

    Make sense? The key is getting the With() statement to refer to the record you are currently working on.

     

    Bryan

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 394 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

Last 30 days Overall leaderboard