0

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

2 Answers 2

1

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.

1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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