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 / 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard