web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Issue with the Get man...
Power Automate
Answered

Issue with the Get manager (V2) action

(0) ShareShare
ReportReport
Posted on by 14

I don't seem to be able to get the Get manager (V2) action to work - it fails if there is no manager set up for a user (UPN) throwing error: Action 'Get_manager_(V2)' failed and the outcomes log shows: 

"Request_ResourceNotFound","message":"Resource 'manager' does not exist or one of its queried reference-property objects are not present.","innerError"

I tried to follow the process described in this article where there are two branches going out from the Get manager (V2) action, one for 'is successful' and the other one for all other outcomes, however I am still getting the above error.

Any suggestions?

 

2023-03-28_19h43_36.png

 

2023-03-28_19h47_41.png

 

Outputs for the Get manager (V2) action:

2023-03-28_20h12_05.png

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    on at

    Hi @Igor_M ,

     

    Please add an action after the apply to each loop.

    vxiaochenmsft_0-1680054342680.png

    vxiaochenmsft_1-1680054352855.png

     

    Best Regards,

    Wearsky

  • Igor_M Profile Picture
    14 on at

    Hi @v-xiaochen-msft 

     

    thanks for a prompt reply however I don't think your solution solves my issue. After adding an action after the apply to each loop, in which Get manager is triggered, the flow ends after having processed only a few user UPNs. So in my instance I have nearly 400 UPNs and the flow ends after only processing c. 10 user UPNs whereas I would like it to retrieve data for all 400 users and return a manager only for those who have a manager set up in the system.

     

    Also, not sure if it is clear from the screenshots I sent previously, but the right hand branch after Get manager (V2) (No manager present) is set to run after failure of Get manager - it assigns the varManager variable a null value.

  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @Igor_M 

     

    Let me know whether this logic helps you

     

    Nived_Nambiar_0-1680155924583.png

     

    Nived_Nambiar_2-1680155969510.png

     

     

  • VictorIvanidze Profile Picture
    13,073 on at

    Hi @Nived_Nambiar, could you please explain why did you decide to place "Get manager" action into scope?

  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    @VictorIvanidze 

     

    I am still learning things in power automate, through this post i have came to know about configure run after option, while searching regarding the issue on how to check manager as boolen variable using get manager action,  via that i came across a post which demonstrates the usage of configure run after option where they has used scope for that.

     

    Using that, I learned the usage of scope and then utilize it here to solve the issue.

     

    But in real, we may not need the scope for Get Manager action as scope is used to group actions  or conditions 🙂 for single action it is not needed.

     

  • Verified answer
    VictorIvanidze Profile Picture
    13,073 on at

    Hi @Igor_M,

    use this:

    if(empty(outputs('Get_manager_(V2)')?['body/id']),null,outputs('Get_manager_(V2)')?['body/id'])

    VictorIvanidze_0-1680164134295.png

     

     

  • VictorIvanidze Profile Picture
    13,073 on at

    @Igor_M, any comments?

  • Igor_M Profile Picture
    14 on at

    Hi @Nived_Nambiar ,

     

    I've tried your suggestion but it was throwing an error, as shown below.

     

    2023-03-30_21h10_36.png

  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @Igor_M 

     

    May i know what error you are getting ?

  • Igor_M Profile Picture
    14 on at

    Hi @VictorIvanidze,

     

    this seems to have solved the issue - the flow is working fine now.

     

    Thank you!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard