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 Apps
Answered

Delegation Warning

(0) ShareShare
ReportReport
Posted on by 321

Having Delegation Warning in this code

 

Filter(
'Main List',
If(
LMEmail = varUserEmail And FormStatus = "Awaiting LM Approval",
Navigate(
LMDashboard,
ScreenTransition.Fade
),
If(
CApprover = "Test@gmail.com" And FormStatus = "Awaiting Head Approval",
Navigate(
CDashboard,
ScreenTransition.Fade
)
)
)
)

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,779 Most Valuable Professional on at

    @codeworks ,

    What exactly are you trying to do here - you have Navigate in the middle of a Filter

  • codeworks Profile Picture
    321 on at

    Yes i am trying to let user navigate to their respective dashboard based on user email. The only issue here is the Delegation warning.

     

  • WarrenBelz Profile Picture
    155,779 Most Valuable Professional on at

    @codeworks ,

    Then you only need

    If(
     LMEmail = varUserEmail And FormStatus = "Awaiting LM Approval",
     Navigate(
     LMDashboard,
     ScreenTransition.Fade
     ),
     CApprover = "Test@gmail.com" And FormStatus = "Awaiting Head Approval",
     Navigate(
     CDashboard,
     ScreenTransition.Fade
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • codeworks Profile Picture
    321 on at

    The following fields are been fetched from list, hence the need to connect the list

    1. LMEmail

    2.FormStatus

    3.Capprover

  • Verified answer
    WarrenBelz Profile Picture
    155,779 Most Valuable Professional on at

    @codeworks ,
    Then try

    If(
     LookUp(
     'Main List',
     LMEmail = varUserEmail
     ).FormStatus = "Awaiting LM Approval",
     Navigate(
     LMDashboard,
     ScreenTransition.Fade
     ),
     LookUp(
     'Main List',
     CApprover = "Test@gmail.com"
     ).FormStatus = "Awaiting Head Approval",
     Navigate(
     CDashboard,
     ScreenTransition.Fade
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • codeworks Profile Picture
    321 on at

    Error on FormStatus = "Awaiting Line Manager Approval"

    Error Message: Incompatible type table, text

  • WarrenBelz Profile Picture
    155,779 Most Valuable Professional on at

    @codeworks ,

    I was using your code here  - probably FormStatus.Value if it is a Choice field

  • codeworks Profile Picture
    321 on at

    It's a text field

  • WarrenBelz Profile Picture
    155,779 Most Valuable Professional on at

    @codeworks ,

    Then how can that be an error when you are comparing it with a text string ?

  • codeworks Profile Picture
    321 on at

    find list attached

    Capture.PNG

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard