cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
svp95bos
Level: Powered On

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 Team
Community Support Team

Re: Get User Profile (V2) - How to specify query

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.
svp95bos
Level: Powered On

Re: Get User Profile (V2) - How to specify query

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

 

 

 

svp95bos
Level: Powered On

Re: Get User Profile (V2) - How to specify query

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

Highlighted
DenisWongAI3
Level: Power Up

Re: Get User Profile (V2) - How to specify query

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

jtt86
Level: Powered On

Re: Get User Profile (V2) - How to specify query

Where did get user profile (v1) go to?

svp95bos
Level: Powered On

Re: Get User Profile (V2) - How to specify query

Hi!

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

Kind regards, Peter

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,594)