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 / Get User Profile (V2) ...
Power Automate
Unanswered

Get User Profile (V2) to get email address and send email not working

(0) ShareShare
ReportReport
Posted on by 63

I am using an InfoPath form with People/Group Picker fields for approvers, published to a SharePoint form library.  When publishing the form, people/group picker fields must be configured to SP site columns as either "DisplayName", "AccountID" or "AccountType".

 

The Flow should simply pull the email address of the user in the people picker field to send an email.  Here is how the Flow is configured (simple test flow):

 

Annotation 2019-10-11 161130a.png

 

This is the error I get if people picker configured as "DisplayName":

Annotation 2019-10-11 161130.png

 

This is the error I get if people picker configured as "AccountID":

Annotation 2019-10-11 161130b.png

 

This is the error I get if people picker configured as "AccountType":

Annotation 2019-10-11 161130c.png

 

 

Typically people picker fields are published as "DisplayName" and they are recognized as people picker fields in SharePoint and seemingly even in Flow, but as you can see, Flow is having a hard time pulling AD/Azure user info correctly and I'm not sure if it's because of InfoPath or the way we have users setup in AD/Azure, or maybe I'm just not configuring the Flow correctly. 

 

Any help or guidance would be appreciated.

 

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @staceylaney 

     

    For Get user profile(v2) you need to pass the User principal name or email id. I can see your trigger is 'When a new item is created' Try to use the 'Created by Email' mapping under Get user profile. 

     

    Let me know whether it works or not.

     

    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

  • Verified answer
    Gristy Profile Picture
    2,429 on at

    Hello

     

    Use account id but you need to remove the claims portion first. use the following in a compose action:

     

    replace(YOURACCOUNTIDVARHERE,'i:0#.f|membership|','')

     

    Replace YOURACCOUNTIDVARHERE with your Account ID variable and use the output in the office 365 profile lookup action

  • staceylaney Profile Picture
    63 on at

    @Gristy- this worked BEAUTIFULLY!  THANKS!!!

  • ranjo364 Profile Picture
    2 on at

    We're using a PowerAutomate workflow approval process for merging software updates. I have a working flow  for a three-step approval process. However, the v2 email approval messages for each of the 3 phases all show the emails as "FROM" the initial approver (who is also the author of the automated flow ). The message contents show with the correct approver name for each step. 

    Is there a way to have the actual approvers name as sender of the corresponding V2 mail at each phase instead of the first approver / originator (who is the also the flow owner) ?

    thanks 

    JR

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard