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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Navigate to screen bas...
Power Apps
Unanswered

Navigate to screen based on variable

(1) ShareShare
ReportReport
Posted on by 24

how can I navigate to a screen  on PowerApps, using a string.

For example, the string is '20256' and it is stored in a variable called project_no, when a button is clicked I want to Navigate(project_no).

The screen is also called 20256 but the variable isn't being picked up as a control screen. 

is there a way to do this?

Categories:
I have the same question (0)
  • turnerj3 Profile Picture
    2,039 on at

    Best way I know how would be to set up an If statement.

    If(project_no ='20256', Navigate(20256), project_no ='20257', Navigate(20257))

  • ViktoriaSasvari Profile Picture
    24 on at

    Thanks, will give it a go but we have 100s of projects, what the limit on the amount of conditions the if can take?

  • turnerj3 Profile Picture
    2,039 on at

    I dont know of a limit, but you are going to have a separate screen for each project?

  • ViktoriaSasvari Profile Picture
    24 on at

    Yes basically, I need to create this: Re: Clocking In App for Construction Company with ... - Power Platform Community (microsoft.com) / Re: Navigate to new screen by clicking part of ima... - Power Platform Community (microsoft.com) so I likely will have to create a separate page for each unless I create the mobile app using React native or something, I can't find another way to do this on PowerApps 

  • ViktoriaSasvari Profile Picture
    24 on at

    also tried: `ClearCollect(
    ScreenMapping,
    { ProjectNo: "20867", ScreenObject: 20867 }
    );`  and Navigate(LookUp(ScreenMapping, ProjectNo = project_no).ScreenObject) but it still doesn't like this for navigation 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard