Forum Discussion
How to use get direct reports in an workflow
Hello jonlake,
To run the workflow I must have the list previously created, I wonder, could you tell me the fields of the list to create it?
Thanks in advance,
Andrews
Hi ADumith , I created a list called global_user_directory_direct_reports. The fields are as follows:
I renamed the Title field to line_manager, but you need to refer to the Title field in the Flow.
- jonlakeApr 28, 2022Iron Contributor
HIADumith , yes the workflow should populate the list, and does when I run it. It's possible your Azure Active Directory is setup differently and does not account for direct reports.
If you are wanting to loop through all users and capture any direct reports you will need a separate source. You can create one by extracting data from your global directory using something as simple as a MS Access database, linked to the client version of MS Outlook. You would then have your Flow get the items from the resulting source.
Precisely why your Flow isn't working is difficult to determine without seeing it, knowing that it works fine at my end capturing direct reports for a single user. If you can share some screen shots of the Flow actions (expanded) that may shed some light on the problem.
Regards, Jon