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 / If formula to navigate...
Power Apps
Unanswered

If formula to navigate to correct screen

(0) ShareShare
ReportReport
Posted on by

Hi Experts,

 

I need a formula on a button that will take the user to the correct screen depending on an IF.

 

If the users email address appears in the 1stApprover column of a sharepoint list & the ChangeStatus of the row item is set to "Submitted" then navigate to MyApprovals screen. I then want the same for 2ndApprover but to navigate to MyApprovals2 screen. Below is where my mind has gone with this code so far but i've made a mistake somewhere along the way, please help

 

If(ChangeMaster, User().Email in '1stApprover') && ((ChangeStatus="Submitted");Navigate(MyApprovals,Cover)

OR

If(ChangeMaster, User().Email in '2ndApprover') && ((ChangeStatus="1st Stage Approved");Navigate(MyApprovals2,Cover)

 

Thanks in advance! 

Categories:
I have the same question (0)
  • BideyYusuf Profile Picture
    387 on at

    hi @Dave-ITMan 

    It seems you made mistake with "Comma" you used semi-Colon";"  instead of "," and also the bracket.

     

    If(ChangeMaster, (User().Email in '1stApprover') && (ChangeStatus="Submitted"), Navigate(MyApprovals,Cover))
    
    You can also use Lookup
    If(LookUp(ChangeMaster,User().Email in '1stApprover',true)&& ChangeStatus="Submitted",Navigate(MyApprovals,Cover))

     

     Check if this helps.

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Dave-ITMan

    If(!IsBlank(LookUp(ChangeMaster, User().Email in '2ndApprover' && ChangeStatus="1st Stage Approved"}) , Navigate(MyApprovals2,Cover), Navigate(somewhere else)) 

  • cha_cha Profile Picture
    4,932 Moderator on at

    Hello @Dave-ITMan 

     

    There are tons of ways to do this but here's my entry

     

    Navigate(
    If(User().Email in '1stApprover') And ChangeStatus="Submitted",MyApprovals,MyApprovals2),
    Cover)

     

     

  • Dave-ITMan Profile Picture
    on at

    Hi @Drrickryp , @cha_cha , @BideyYusuf 

     

    Thank you all for your help, I tried all and kept getting errors but managed to adapt @Drrickryp slightly using the below which appears to have worked

     

    If(!IsBlank(LookUp(ChangeMaster, User().Email in '2ndApprover' && ChangeStatus="1st Stage Approved")) , Navigate(MyApprovals2,Cover), Navigate(MyApprovals))

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 759 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard