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 / How to transfer correc...
Power Apps
Answered

How to transfer correct query string from PowerApp to Power Automate

(1) ShareShare
ReportReport
Posted on by 62

Hi everyone!

I hope someone can help me.

I have a SP list Masto50 with more columns. 

The task is as follows: to export data from the SP list to Excel depending on who is logged in.
everything works great except for one point.
I can't filter the list by User().Email with Power Automate.

I created a flow with two parameters

And call this flow from app:

If(
    User().Email in AllowR1,
    ExportMasto50ToExcel_DE.Run("field_3 eq 'R1'", User().Email),
    If(
        User().Email in AllowR2,
        ExportMasto50ToExcel_DE.Run("field_3 eq 'R2'", User().Email),
        If(
            User().Email in AllowR3,
            ExportMasto50ToExcel_DE.Run("field_3 eq 'R3'", User().Email),
            If(
                User().Email in AllowViewAllUser,
                ExportMasto50ToExcel_DE.Run("", User().Email),

ExportMasto50ToExcel_DE.Run("Employee/EMail eq 'User().Email'", User().Email)))))
If I explicitly specify the user's e-mail address in the last line (ExportMasto50ToExcel_DE.Run("Employee/EMail eq 'abc@xyz.com'", User().Email)), then everything works fine.
But I need to transfer this parameter depending on who is logged in.
In my case SP the list has a column Employee with Person or Group type.
I would appreciate any ideas.
Categories:
I have the same question (0)
  • Verified answer
    Nandit Profile Picture
    1,568 Moderator on at
     
    Try replacing your code with the following and I think it should work then.
    "Employee/EMail eq '" & User().Email &"'"
    Hope this helps. 
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
  • Kalakosha Profile Picture
    62 on at
    Thanks @Nandit
    Now it's works perfect!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 977

#2
Valantis Profile Picture

Valantis 664

#3
11manish Profile Picture

11manish 530

Last 30 days Overall leaderboard