Applies to Product - Power Apps
What’s happening?
Customers are experiencing difficulties using "if conditions" in the Start Screen property for Power Apps.
Reason:
This may be related to a bug in the previous version of the app. It has been noted that the problem seems to have been resolved after updating to the latest version. Additionally, there might be a chance of issues arising due to network changes.
Resolution:
To use if conditions in the StartScreen property for Power Apps, you can utilize the If function to determine which screen to display first based on certain conditions. Here are some examples:
- Basic Condition: plaintext If( Param("admin-mode") = 1, HomeScreen, AdminScreen ) This checks if the Param("admin-mode") is set to 1 and displays HomeScreen if true, otherwise it displays AdminScreen.
- Using LookUp Function: plaintext If( LookUp( Attendees, User = User().Email ).Staff, StaffPortal, HomeScreen ) This checks if the current user is a staff member and directs them to StaffPortal, otherwise to HomeScreen.
- Handling API Calls: plaintext IfError( If( CustomConnector.APICall() = "Forest", ForestScreen, OceanScreen ), ErrorScreen ) This directs the app based on an API call to either ForestScreen or OceanScreen. If the API fails, it shows the ErrorScreen.
If further issues arise, please check the Power Platform admin center for known issues or updates related to the features being used.
