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

Get Manager V2 Request: Bad_Request

I realize that Get Manager uses Azure AD and I have verified that my User has a Manager in A-AD and that that Manager ID is valid, but my workflow fails with :

 

{
  "error": {
    "code""Request_BadRequest",
    "message""Bad request. Please fix the request before retrying.",
    "innerError": {
      "request-id""f3af12dc-3706-45c7-b4f3-###!##!!##!!",
      "date""2018-04-30T13:22:43"
    }
  }
}

 

My UPN seems correct: i:0#.f|membership|myname@mydomain.com

1 ACCEPTED SOLUTION

Accepted Solutions
joconnor
Level: Powered On

Re: Get Manager V2 Request: Bad_Request

The upn would be of the curtrent user, not hard coded.  I used "Created By Claims"

 

I got it to work, by first using the Get Profile action with the "Created By Claims".  Then I used the Get Manager action using the UPN, although that didn't seem to be in any of the examples I was working from.  As soon as I did that it worked.  

workflow capture.png

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Get Manager V2 Request: Bad_Request

Hi @joconnor,

 

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

Further, could you please show more details about the error message?

 

The User (UPN) field of the "Get Manager (V2)" action is required to fill the User Principal Name or the email address of a user (Office 365 User). In default, the User Principal Name (UPN) of a user has same value with the email address of a user.

 

I have made a test on my side and don't have the issue that you mentioned. My flow's configuration as below:17.JPG

The flow works successfully as below:18.JPG

 

Please take a try to type the email address of your User within the User (UPN) field of the "Get Manager (V2)" action, then check if the issue is solved.

 

More details about the "Get Manager (V2)" action, please check the following article:

Get Manager (V2) action

 

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

Re: Get Manager V2 Request: Bad_Request

The upn would be of the curtrent user, not hard coded.  I used "Created By Claims"

 

I got it to work, by first using the Get Profile action with the "Created By Claims".  Then I used the Get Manager action using the UPN, although that didn't seem to be in any of the examples I was working from.  As soon as I did that it worked.  

workflow capture.png

View solution in original post

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

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 Flow Community Video Gallery!

Users Online
Currently online: 454 members 5,390 guests
Please welcome our newest community members: