Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

toUpper Output Value from Outlook Search For Users

(0) ShareShare
ReportReport
Posted on by 59

I am searching for user via their Last Name and then once I get that output, I am looking to just make the Surname all upper case so that I can cross reference it against another field but it does not seems to changing that data field.  I am using the expression:

 

toUpper(triggerBody()['Search_for_users_(V2)']?['Surname'])
 
and part of my flow is below.  Any help would be much appreciated.
 
Screen Shot 2020-02-21 at 7.28.30 PM.png
  • Verified answer
    RobElliott Profile Picture
    10,155 Super User 2025 Season 1 on at
    Re: toUpper Output Value from Outlook Search For Users

    @bsmith736464 the following flow based on your worked for me, pulling the email address from the spreadsheet and putting that into the Search and then using 2 compose controls converting the surname to upper case:

    0-flow.png

     

    1-result.png

    Rob
    Los Gallardos
    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks. 

  • fchopo Profile Picture
    7,968 Super User 2025 Season 1 on at
    Re: toUpper Output Value from Outlook Search For Users

    Please, could you share the expression in the "Compose 2" action?

  • bsmith736464 Profile Picture
    59 on at
    Re: toUpper Output Value from Outlook Search For Users

    @fchopo  - thank you so much for your help but unfortunately it is still not working.  

     

    I have tried it a couple of ways but from what I can surmise from the output, it looks like "Compose 2" box is only pulling data from the original excel file that is already uppercase instead of the "Search for Users" output that I need it to.  

     

    Screen Shot 2020-02-22 at 1.55.21 PM.png

  • fchopo Profile Picture
    7,968 Super User 2025 Season 1 on at
    Re: toUpper Output Value from Outlook Search For Users

    Hello @bsmith736464 

    I think you should use this expression in the compose value: toUpper(items('Apply_to_each_5')?['Surname']) using the ouput from the search users (v2) action. I have done something similar, and it works:

    2020-02-22 11_16_59-Window.png

    Hope it helps!

    Ferran

     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492