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 / Testing a flow that us...
Power Automate
Unanswered

Testing a flow that uses "Get Manager" without test approvals to my manager - workaround using a variable?

(0) ShareShare
ReportReport
Posted on by 312

I'm working on and need to test a sequential approval that uses Office 365 Users - Get Manager. I need to be able to test the Flow, but I want to avoid sending numerous emails to my actual manager. Is there a way to add a step that forwards communications that would go to the manager to another email address, while still maintaining the integrity of the Flow for testing purposes (i.e. I could safely just remove that step when I'm done?)? Maybe using a variable to replace the manager's email with my own email? Any insight and/ or help with the steps very appreciated! 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    I would do as you suggested and use either a Compose or a variable to hold the email.  Then after you retrieve the manager you can store the email address in the compose or variable.  Then add a step just after that to change the value to a dummy email address. When you are done testing just remove the step that inserts the dummy address and it will start using the manager's email.

  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    Hi @KBeale  

     

    If you have access to the azure portal, and you have already test users so you can alter your manager to that of the test user through the Azure portal , and returning back after you finish your testing.

    Set Manager via Azure AD portal

    Follow the below steps to configure manager from Azure AD Portal.

    • Go to Azure AD Portal.
    • In the left navigation, click Azure Active Directory and click Users.
    • Select (click on user name hyperlink) the required user, click on Edit under Job info section and then add or remove manager field as shown in the below image.
    Mira_Ghaly_0-1596022550637.png

     

     

     

    If this post helps you with your problem, please mark your as Accepted solution.

    If you like my response, please give it a Thumbs Up.

    MG (Naturally Curious)

     

     

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard