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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to match a name be...
Power Automate
Answered

How to match a name between SharePoint and Microsoft Forms and then after finding the matched name row input a column into a variable

(0) ShareShare
ReportReport
Posted on by 63

Hello everyone, the title might be confusing but let me make it clearer with images. So, I have a flow where I take the responders email from Microsoft Forms, and then I put it into get user profile. After I put it into get user profile, I want to match that name with a name from one of the SharePoint lists I have, which has a bunch of names and their director's. So, whoever the user is, I want to find their director and then put their email inside a variable. Below are the images for what I have. 

Sharepoint:

Rupin_1-1702330688341.png

so, the image above shows that both staff name and director are person or group columns. And I try to match the display names for both and want the email of the director for the person who submitted the form.

Rupin_2-1702330724428.png

 



Rupin_3-1702330938401.png

 

So, in the image it is taking the responders email and getting the user profile and that user profiles name is inside a variable. Then I try to get the matched user and then put that matched user's director inside a variable. However, I am pretty sure its wrong. So, any help would be appreciated.

Thanks in advance. 

 

Categories:
I have the same question (0)
  • Verified answer
    creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at

    @Rupin Instead of using an Apply to Each and Condition action. It's much more efficient to use a filter query instead.

     

    You will need to use the internal column name of your user profile column. If you aren’t sure how to get this, please refer to this section of one of my YT tutorials. In my case, it's 'Profile'. Add a forward slash and EMail. Use eq for the equals to operator and between single quotes insert the Responders' Email dynamic content. 

    creativeopinion_2-1702336273446.png

     

    You can add a Compose action after to check to see if any items have returned by using the length() function. 

     

    creativeopinion_0-1702335782906.png

    Click on the Dynamic content tab and insert the value output from the Get Items action. 

    creativeopinion_1-1702335795234.png

     

    You can then add a Condition action to determine what happens if there are no items returned, or if there are.

    creativeopinion_3-1702336405480.png

     

    I can't tell from your screenshot what you are doing with the variable. However, it might not be necessary in your scenario. If you could provide a full screenshot of your flow it would help.

     

    Hope this helps!


    If I helped you solve your problem—please mark my post as a solution ✅.
    Consider giving me a 👍 if you liked my response!

    👉Watch my tutorials on YouTube
    👉Tips and Tricks on TikTok

     

     

     

  • Rupin Profile Picture
    63 on at

    @creativeopinion Thanks for your answer! For the variable I was trying to send an approval process to the director and the variable had the director's email because it's a person or group column inside SharePoint

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard