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 Based on User...
Power Apps
Unanswered

Navigate Based on User and Record Value

(0) ShareShare
ReportReport
Posted on by

Hi Experts,

 

I've got a gallery (Gallery2) and a button which i've set the OnSelect to the below which doesn't work and i'm not sure where i've gone wrong, please help to advise as if the ChangeStatus for the Gallery2.Selected is "1st Stage Approved" and the user is listed in one of many textboxes then Navigate to Screen1 BUT if the ChangeStatus for the Gallery2.Selected is "Submitted" and the user is listed in one of four textboxes then Navigate to a screen called Stage1Approval

 

Gallery2.Selected;
Navigate(
 If(
 LookUp(ChangeRequests, ChangeStatus = "1st Stage Approved",
 With(
 {wEmail: User().Email},
 wEmail in TechSales1.Text || wEmail in TechSales2.Text,
 wEmail in Commercial1.Text || wEmail in Commercial2.Text,
 wEmail in Sales1.Text || wEmail in Sales2.Text,
 wEmail in 'R&D1'.Text || wEmail in 'R&D2'.Text,
 wEmail in QHSE1.Text || wEmail in QHSE2.Text,
 wEmail in Production1.Text || wEmail in Production2.Text,
 wEmail in Compliance1.Text || wEmail in Compliance2.Text,
 wEmail in IT1.Text || wEmail in IT2.Text,
 'Screen1'
 ))),
 LookUp(ChangeRequests, ChangeStatus = "Submitted",
 With(
 {wEmail: User().Email}, 
 wEmail in TechSales1.Text || wEmail in TechSales2.Text,
 wEmail in Commercial1.Text || wEmail in Commercial2.Text,
 'Stage1Approval'
))))

 

Thanks in advance! 

Dave

Categories:
I have the same question (0)

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard