SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to design an Info Path form for a leave approval workflow.

Only a Head of Department can approve. The requirement is that if the applicants supervisor(manager) is not the Head of Department, route the workflow upwards to the supervisor(manager) of the supervisor(manager). This process would continue until a HOD is finally reached.

How do I create Info Path sections that repeat until an HOD is found

share|improve this question

So, in the final the HOD will receive the request for approval. Then why not using the people picker and select from the start the name of HOD and submit the form. I belive in every company the HOD is a known person. Then a workflow can get this info and send him an email to request an approval.

share|improve this answer

Alternatively you could creaete a data source that pulls from the User Profile Service and loop through the varous levels of managers until it reaches the HOD.

You can create a data source for the UPS by creating a Soap Web Service that connects to: http://yoursite/vti_bin/UserProfileService.asmx?WSDL

Then you can create filter that passes the current user to the USP connection.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.