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 / Get User Displayname f...
Power Automate
Answered

Get User Displayname from SharePoint Send HTTP Request

(0) ShareShare
ReportReport
Posted on by 35

Hi folks...

 

I'm using the SharePoint Send HTTP Request to get all items from a list in sharepoint.

I don't use "Get items" because it pull only 100 rows...

 

When I send the HTTP Request to my list, I don't received the DisplayName or Email for the "Person or Groups" fields.

I recieve twho field (eg: PersonID, PersonStringID).

 

How can I get the User description (DisplayName and Email) with this ID?
I tried with "Get user profile (V2)"... But I don't have the UPN...

Categories:
  • Expiscornovus Profile Picture
    34,005 Most Valuable Professional on at

    Hi @GABRIELV221,

     

    You could use an $expand query parameter to get the other properties of your person field as well. With a $select you get the fields you want. In your case EMail and Title of the person or group type of field.

     

    Below is an example.

    In my example the internal field name of the person or group type column is Person.

     

    EMail is written correct btw, that needs to be with a capital M. Here is a link to other fields which you could use in your $select.

     

    _api/web/lists/getbytitle('@{variables('ListName')}')/items?$select=Title,Person/Title,Person/EMail&$expand=Person

     

    expandpersoncolumn.png

  • GABRIELV221 Profile Picture
    35 on at

    Hi @Expiscornovus 

     

    I tried, but I cannot...

    I've been tried with this URL: _api/web/lists/getbytitle('MyList')/items?$select=Created By/Title&$expand=Created By

     

    GABRIELV221_0-1663693697554.png

     

    But I get this error: 

    The expression "Created By/Title" is not valid.
    clientRequestId: acb476c1-f091-4781-a7e3-26bc21f7a47d
    serviceRequestId: e7e066a0-5036-2000-713f-1fd1a7d970d5

  • Verified answer
    Expiscornovus Profile Picture
    34,005 Most Valuable Professional on at

    Hi @GABRIELV221,

     

    You need to use the internal field names. In your case that would be Author instead of the display name Created by. Try Author in the $expand and Author/Title and Author/EMail in the $select

  • GABRIELV221 Profile Picture
    35 on at

    Hi @Expiscornovus 

     

    It's works! I'll mark as solution! Thanks!!!


    One more question, I have a coulmn called "Assigend User", with space... I tried many ways to put in the select but with errors...

     

    Eg: 

    _api/web/lists/getbytitle('MyList')/items?$select=Title,Assigend User/Title&$expand=Assigend User

    _api/web/lists/getbytitle('MyList')/items?$select=Title,'Assigend User'/Title&$expand='Assigend User'

    _api/web/lists/getbytitle('MyList')/items?$select=Title,[Assigend User]/Title&$expand=[Assigend User]

    _api/web/lists/getbytitle('MyList')/items?$select=Title,"Assigend User"/Title&$expand="Assigend User"

  • Expiscornovus Profile Picture
    34,005 Most Valuable Professional on at

    Hi @GABRIELV221,

     

    An internal field name would not have a space character, it is probably AssigendUser.

     

    You can double check what the correct name is in the list settings. Have a look at this blog from @ekarim2020, https://elliskarim.com/2021/12/20/finding-the-internal-name-of-a-sharepoint-column/

     

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 330

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 123

Last 30 days Overall leaderboard