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 / Power app not working ...
Power Apps
Answered

Power app not working as should

(0) ShareShare
ReportReport
Posted on by 97

Hi just started making my first app but running into a issues. im following a YouTube guide (LINK)  but from 22:50 i cant get the "Take Action" in email to direct me to that TicketScreen were im able to update status and add data in Approval Information.

1. i have 3 screens "HomeScreen,TicketScreen,TicketForm".

2. when i hit "Take Action" it take me to the HomeScreen not the ID of ticket in TicketForm. 23..26

3. I cant add Data in Approval Information Screen because it will not take me there. 22.36

Screenshot 2024-03-09 071531.png

Codes are

OnScreen

If (
 !IsBlank(Param("ID")) && LookUp(
 'Snowy Drone Request Data',
 ID = Value(Param("ID"))
 ).'Assigned To' = User().Email,
 TicketScreen
 
)

OnStart

If(
 !IsBlank(Param("ID")),
 Set(
 varItem,
 LookUp(
 'Snowy Drone Request Data',
 ID = Value(Param("ID"))
 )
 );
 Set(
 varFormMode,
 FormMode.Edit
 )
)

Can anyone help me with this problem?

my flow

Screenshot 2024-03-09 073123.png 

Categories:
  • Verified answer
    DJ_Jamba Profile Picture
    2,837 Moderator on at

    Hi @David1966 

    One step at a time 😀
    The first thing I notice is the 'Assigned To' column which usually contains a person object (people column).

    If (
     !IsBlank(Param("ID")) && LookUp(
     'Snowy Drone Request Data',
     ID = Value(Param("ID"))
     ).'Assigned To' = User().Email,
     TicketScreen
     
    )

     
    If 'Assigned To' is a people column then that code cannot work because you are comparing a record to text. You have to select the property inside the record e.g.


    'Assigned To'.Email

     

    The second thing (I'm not at a computer so can't verify this) - I'm pretty sure the Power Apps LookUp function is case sensitive.
    Sometimes 'Assigned To'.Email could be
         Bob.Smith@Company.com 

    ... which is not the same as:

         bob.smith@company.com

    (I have seen cases where User().Email does not return the same case as a SharePoint people column).

     

    So in your case I would do this:

    If(
     !IsBlank(Param("ID")),
     With(
     {
     varLookup: LookUp(
     'Snowy Drone Request Data',
     ID = Value(Param("ID"))
     )
     },
     If(
     And(
     !IsBlank(varLookup.'Assigned To'.Email),
     Lower(varLookup.'Assigned To'.Email) = Lower(User().Email)
     ),
     TicketScreen,
     HomeScreen
     )
     ),
     HomeScreen
    )

     

    (Apologies in advance for any typos as I'm not at my computer).

  • David1966 Profile Picture
    97 on at

    Your a Life Saver had to change your code to.

    !IsBlank(Param("ID")),
     With(
     {
     varLookup: LookUp(
     'Snowy Drone Request Data',
     ID = Value(Param("ID"))
     )
     },
     If(
     And(
     !IsBlank(varLookup.'Assigned To'),
     Lower(varLookup.'Assigned To') = Lower(User().Email)
     ),
     TicketScreen,
     HomeScreen
     )
     ),
     HomeScreen
    )

    I also stop using cap in the "Assigned To" in flow and it now works. Thanks again for your Help. I will try and add a link to this as in comments in YouTube i was not the only one with the same problem.. THANKS

     

  • DJ_Jamba Profile Picture
    2,837 Moderator on at

    You're welcome!
    Don't forget to mark as solution if it has solved your problem

    d(-_-)b

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard