web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : GzOuEfBxK0YPFgMqMUjWr8
Power Automate - General Discussion
Unanswered

How to reference currentUser.Email

Like (0) ShareShare
ReportReport
Posted on 19 Jan 2024 21:32:31 by 3

Sorry I just realised I landed a wrong forum (this is for Power Automate). But I will detail my issue with Power Apps anyway. 

I watched this Power Apps tutorial where a desk booking system has been created https://www.youtube.com/watch?v=zroxwXpVhHI 

And I would like to get help from you all : I wanted to replicate the function where the first two appointments are displayed. 

I just handcoded the source code from the tutorial like in the screenshot, but it flags an error at currentUser.Email. The tutorial says that she created a global variable currentUser somewhere on the app that contains email data. I tried to create a global variable called currentUser under the App on the Tree View (the one just beneath the create new screen). But I was not able to reference the Email which this formula in the screenshot needs. Does anyone have some idea how to fix this? 

 

Screenshot 2024-01-19 at 22.24.42.png

I have the same question (0)
  • ManishSolanki Profile Picture
    15,089 Super User 2025 Season 2 on 20 Jan 2024 at 08:22:43
    Re: How to reference currentUser.Email

    Hi @morry329 

     

    You need to use Set function to declare the global variable that contains current user object:

    Set(currentUser,User());

    You could refer this variable later in the app as shown below:

    Filter('Action Tracker','Created By'.Email = currentUser.Email)

    ManishSolanki_0-1705738929453.png

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • morry329 Profile Picture
    3 on 21 Jan 2024 at 15:36:16
    Re: How to reference currentUser.Email

    Unfortunately my app is still getting the error "Behavior function in a non-behavior property. You can't use this property to change values elsewhere in the app (as per screenshot below)". Where did you place your Set(currentUser,User())? Items? Onselect of your Gallery?

    Screenshot 2024-01-21 at 16.31.52.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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 666 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 382 Moderator

#3
developerAJ Profile Picture

developerAJ 254

Last 30 days Overall leaderboard
Loading complete