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 / REST API in 'Send a HT...
Power Automate
Answered

REST API in 'Send a HTTP Request' returning an error

(0) ShareShare
ReportReport
Posted on by 509

Hi

 

I'm trying to return an additional SP column in a Flow I've inherited. I've checked the name of the field in the address bar and it's showing as 'BTG%5Fx0020%5FPolicy%5Fx0020%5FOwner'. I've added it to the Uri but I'm getting the following error:

 

The query to field 'BTG_x0020_Policy_x0020_Owner' is not valid. The $select query string must specify the target fields and the $expand query string must contains BTG_x0020_Policy_x0020_Owner.
clientRequestId: 7a8296bc-5ebc-46cc-bb70-91bcc63de8b0
serviceRequestId: 6197499f-500b-a000-9d7a-15393aae9596

 

The field in SP is a 'People Picker' field. I'm also figuring out how the script works after $filter.

 

Any help appreciated!

 

HTTPRequest.png 

Categories:
  • JohnAageAnderse Profile Picture
    1,986 on at

    Hello @darrenfloyd666 

    Did you find an answer to your question?

    As you wronte the  'BTG_x0020_Policy_x0020_Owner'  is a people field, so you have to get the value from it using both $select= ... and $expand= ...

    In both places you have to use the BTG_x0020_Policy_x0020_Owner/title - this should give you the value of the field.

    Unsure if title after the slash is correct, else you will have to search for this information 🙂

    Hope this helps a little. Kind regards, John

  • sutekh Profile Picture
    509 on at

    Thanks @JohnAageAnderse added the column to the select:

    RESTThursday.png

     

    and I'm getting the following error: 

     

    The query to field  is not valid. The $select query string must specify the target fields and the $expand query string must contains BTG_x0020_Policy_x0020_Owner.  

     

    Which I've Googled and I'm not getting much luck.
     

  • JohnAageAnderse Profile Picture
    1,986 on at

    Hello @darrenfloyd666 

    You are nearly there 🙂

    The select and expand should look like this example, where I use the Author column in my list:

    ?$select=Author/Title&$expand=Author

     

    Select states what to get, in the above it is the Authors title aka name. Select can only get it, because Expand helps providing the additional information.

    Kind regards, John

  • sutekh Profile Picture
    509 on at

    Thanks @JohnAageAnderse , I think I'm close! I'm getting a different error message!

     

    Is it because of the '/'  after the expand? 

     

     


    _api/web/lists/getbytitle('BTG Documents')/items?$select=Title/BTG_x0020_Policy_x0020_Owner,Policy_x0020_Expiry&$expand=Title/BTG_x0020_Policy_x0020_Owner&$filter=Policy_x0020_Expiry lt datetime'

    Error: The field or property 'Title' does not exist

     

     

  • Verified answer
    JohnAageAnderse Profile Picture
    1,986 on at

    Hello @darrenfloyd666 

    A little correction to $select and $expand 🙂

    ... $select=BTG_x0020_Policy_x0020_Owner/Title,Policy_x0020_Expiry&$expand=BTG_x0020_Policy_x0020_Owner ...

    Kind regards, John

  • sutekh Profile Picture
    509 on at

    Brilliant! That worked! Thanks!

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 424

#2
11manish Profile Picture

11manish 328 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard