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 / Switch case with Share...
Power Apps
Answered

Switch case with Sharepoint List

(0) ShareShare
ReportReport
Posted on by 5

Hi everyone,

I am relatively new to using PowerApps and I am currently attempting to create an EditForm where users can choose between different options based on the current status of the item. This will be connected to a SharePoint list. Initially, I tried to filter the choices of a choice column in SharePoint but after encountering difficulties, I decided to set the different choices in a dropdown in the PowerApp.

The SharePoint list is named "DPA_PowerApp_TestV1" and the column is titled "Current Status". Currently, I am using the following code:

Switch(DPA_PowerApp_TestV1, "Open", ["Default", "Approve"], "Close", ["Default", "Close"])

I am uncertain how close this solution is and would greatly appreciate some assistance.

Thank you in advance!

Simon

 
Categories:
  • Verified answer
    kelseytran Profile Picture
    292 on at

    Hi @Simon97 ,

     

    It sounds like you're on the right track, just need to make a couple adjustments:

    Switch(
     ThisItem.'Current Status',
     "Open", ["Default", "Approve"],
     "Close", ["Default", "Close"],
     ["Default"] // Default options if status is neither "Open" or "Close"
    )

    This will evaluate the status of the item using 'ThisItem.'Current Status'.------------------------------------------------------------------------------------------------------------------------------
    If I answered your question, please accept my post as a solution and if you liked my response, please give it a thumbs up.

    Thanks!

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard