Forum Discussion

ADumith's avatar
ADumith
Iron Contributor
Apr 08, 2022

How to use get direct reports in an workflow

Hello,

I have a flow that theoretically adds users from my Active Directory to a SharePoint list. This flow fires when you add a valid email to the list.

 

The problem is that the flow runs but it doesn't bring me any log, any ideas?

 

This is the workflow:

 

 

  • RobElliott's avatar
    RobElliott
    Silver Contributor

    ADumith the flow shown below worked fine for me and added the direct reports into a list with no problem, so you need to look at the initial trigger and also make sure the create item is selecting the correct dynamic content.

     

     

    Rob
    Los Gallardos
    Microsoft Power Automate Community Super User

    • ADumith's avatar
      ADumith
      Iron Contributor
      Thanks for your reply, I can't identify the first step of the flow, how do I place it in my PowerApp?
      • jonlake's avatar
        jonlake
        Iron Contributor

        Hi ADumith , if your aim is to capture all direct reports for an active account in a list you can do it like this, assuming you have a condition looking for AccountEnabled is true. I've tested this and it works well for me. The 'Create target user item' is not strictly necessary but I chose to keep a record of the email addresses I was entering during the test.

         

         

         

Resources