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 / Condition for Navigation
Power Apps
Answered

Condition for Navigation

(0) ShareShare
ReportReport
Posted on by 64

Hi everyone, 

as I am still a newbie in building PowerApps, I hope you can help me with this. 

 

I want to build a simple condition to navigate to or skip a screen at the app start. 

If there is an entry in a sharepoint list for the current user and the current year, navigate to screen1, otherwise navigate to screen2. 

Current user: EDV Test User

SPO List: MobilityApp_DB1

 

Where am I wrong? 

 

Thanks for your help!

MA1.png
MA2.png
Categories:
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Frank89 

    Please try the following,

    IsBLank(LookUp(MobilityApp_DB1, MitarbeiterIn.DisplayName=var_currentuser.DisplayName && Jahr=Year(Now())), 
    	Navigate(SCR_abc), // Screen 2
    	Navigate(SCR_xyz), // Screen 1
    )
  • Frank89 Profile Picture
    64 on at

    @CNT 

    PowerApps shows me the error: "Invalid number of arguments: received 3, expected 1"

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Frank89 remove the last comma,

     

    IsBlank(LookUp(MobilityApp_DB1, MitarbeiterIn.DisplayName=var_currentuser.DisplayName && Jahr=Year(Now())), 
    	Navigate(SCR_abc),
    	Navigate(SCR_xyz)
    )

     

  • Frank89 Profile Picture
    64 on at

    @CNT 

    I removed the last comma already. Same error. 

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Frank89 Please share a screen shot of the formula with the error.

  • Frank89 Profile Picture
    64 on at

    @CNT 

    here is a screenshot

    MA3.png
  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Frank89 Oops! forgot to wrap it in an If. Here you go,

    If(IsBlank(LookUp(MobilityApp_DB1, MitarbeiterIn.DisplayName=var_currentuser.DisplayName && Jahr=Year(Now()))), 
    	Navigate(SCR_abc),
    	Navigate(SCR_xyz)
    )
  • Frank89 Profile Picture
    64 on at

    Awesome, it works!! Thank you very much!!! 🙂

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Frank89 

    Glad to help!

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 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard