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 Automate / Filter list and send e...
Power Automate
Unanswered

Filter list and send email

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, everyone! I made a flow that triggers when a new item is added to my list "RetornoFlexible_1". I need to take the "Legajo" from that item and look it up in another list called "TablaEmpleados". When Legajo=USERID, my flow should save the MANAGER in a variable called "superiorid". After that, I look up the "superiorid" in the USERID column of "TablaEmpleados" list, get the "EMAIL" and save it in the variable mailSuperior. Finally flow should send an email to the direction saved in mailSuperior.

This it how it looks

denise_martinca_0-1594939285941.png

denise_martinca_1-1594939331750.png

My problem is when I execute the flow, although it detects no error, the result of my first filter (Legajo = UserID) gives back a null. So no email is sent.  I now for sure that there is a userID equal to the legajo value i'm trying so I don't why this is happening. Could you please help me?

denise_martinca_2-1594939449171.png

denise_martinca_3-1594940042452.png

Thank you!

 

 

 

 

Categories:
I have the same question (0)
  • Rahber Profile Picture
    1,935 on at
    Try putting quotes around your variable in filter query

    example

    USERID eq '[Legajo]'
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi, @Rahber ! Thank you for your reply, I put the quotes but it still doesn't work.

    denise_martinca_1-1594992609356.png

     

    denise_martinca_0-1594992490410.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Rahber do you know if there is a limit in the amount of rows that "Get items" can process? My list has at least 11000 items. I only need to get 1 item though. Thank you! 

  • Rahber Profile Picture
    1,935 on at
    There is usually a 100 items default limit that can be increased to 5000 by enabling pagination in the settings of the action.

    The problem seems to be some thing else in your case. Can you remove the filter and show the body of the action in run mode specially where the USERID is shown ?
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    If you want to get only 1 record at a time, then you can set the Top Count property of the Get Items action to 1.

     

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard