Hello,
I would like to create an iterative macro that given a terminated user, can run a query to find their manager and continue this process until an active user is found. For example. If user A has the manager user B has the manager user C, when user A is terminated, it returns user B. If both user A and B are terminated, it returns user C.
I have an iterative macro that works for one user, but as soon as I pass in multiple records at once, it gives an exponential amount of results, some of which are duplicates, some of which are incorrect. How can I ensure that the macro iterates one record entirely before moving on to the next? I cannot upload the sample workflow here due to company policy, but will be happy to provide more explanation if needed
