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 / Action 'Get_user_profi...
Power Automate
Answered

Action 'Get_user_profile_(V2)_2' failed

(0) ShareShare
ReportReport
Posted on by

Hello,

 

Can anybody help me? I am getting a get user profile failed. For context, I am trying to get the recipients display name and add it in an excel file. 

unknowwwnn_1-1715199343607.png

unknowwwnn_2-1715199437328.png

 

Any help would be greatly appreciated. 

 

Categories:
  • Verified answer
    creativeopinion Profile Picture
    10,508 Moderator on at

    @unknowwwnn Looks like you are trying to pass multiple email addresses. You can only pass a single email address. If you want to use the Get user profile (V2) action on multiple email addresses you need to convert the string of email addresses into an array of email addresses and loop through them. 

     

    Add a Compose action and use an expression. Insert the split() function. This function takes two parameters:

    split([string],[separator])

     

    creativeopinion_0-1715205281280.png

    Click on the dynamic content tab and insert the To dynamic content. 

     

    creativeopinion_1-1715205296969.png

    Add a comma and a semi-colon between single quotes. Run a test. 

    creativeopinion_2-1715205310346.png

    The split() function will output an array of email addresses.


    Add an Apply to Each action to loop through your array.

    creativeopinion_3-1715205448126.png

     

    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!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram

     

     

  • unknowwwnn Profile Picture
    on at

    Hi creative opinion!

     

    Thank you for this. I was actually thinking of using split function, however I am familiar how this works since I am still new in power automate.

     

    Anyway, I followed your steps but I changed the expression a little bit.

     

    unknowwwnn_0-1715284795788.png

    I use 

    split(outputs('when_a_new_email_arrives_(V3)')?['body/toRecipients'],';')
    to match my chosen trigger. Unfortunately, I am prompted by this error.
     
    unknowwwnn_1-1715284993282.png

     

     Any insights? 
     
  • creativeopinion Profile Picture
    10,508 Moderator on at

    @unknowwwnn Can you explain the purpose of this Get user profile (V2) action? 

    creativeopinion_0-1715309671262.png

     

    If you want to return the user profile of each of the recipients of the email, this action has to be inside the Apply to Each action.

     

    Can you ensure that you are inserting the correct dynamic content inside the split action? It doesn't look correct from your previous post. After you insert the expression, you need to select the dynamic content from the flow trigger. 

    creativeopinion_1-1715309901640.png

    In my original screenshot, I was using a Get Email action. I should have clarified that. You need to ensure you are inserting the correct dynamic content in your expression.

  • unknowwwnn Profile Picture
    on at

    @creativeopinion hello, I input the correct expression however, the error was caused by the another step. Thank you very much for your help! 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 229 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 223 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 136 Super User 2026 Season 2

Last 30 days Overall leaderboard