cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Get User Profile (V2) - How to specify query

Hi,

 

When I'm trying to use Get USer Profile (V2) to get a specific field in the user profile, I get the following error:

 

{
  "error": {
    "code": "BadRequest",
    "message": "Query option '$select' was specified more than once, but it must be specified at most once.",
    "innerError": {
      "request-id": "eedd1e5b-a610-405c-a38c-35035df7f6a0",
      "date": "2018-01-08T11:21:51"
    }
  }
}

 

What am I doing wrong here? I guess the query field is supposed to act as the $select. It doesn't matter what I write in the field - I keep getting the above error.

 

Any help with the syntax of the Query field in this action would be much appreciated.

 

Kind regards,

Peter Rundqvist

6 REPLIES 6
Community Support
Community Support

Hi @svp95bos,

 

Could you please share a screenshot of your flow's configuration?

 

The error message told that the query option '$select' was specified more than once within your "Get user profile (V2)" action. The issue is confirmed on my side. 

 

I afraid that we could not use OData query in Select query field of "Get user profile (V2)" action to get the specific field, if you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,

 

This is how my sample flow looks like.The first image show the configuration (sorry, it is in swedish) while the second shows the result of the execution. The first action is simply a button action.

 

Kind regards,

Peter

 

 

 

Hi,

 

Thanks for getting back. Does this mean that the query field in the "Get user profile (V2)" action isn't used? I can see that the action is still in preview.

 

Kind reagrds,

Peter

Anonymous
Not applicable

Hello,

 

Do you guys have any news about this issue?

 

I am working on a customer tenant and now "Get User Profile (v1)" is no more available. I am stucked with the v2 version which does not allow to specify which properties I want to retrieve.

 

Thank you,

Denis

Anonymous
Not applicable

Where did get user profile (v1) go to?

Frequent Visitor

Hi!

I actually had to give this up and use the Graph API instead.

Kind regards, Peter

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (10,063)