• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2302
  • Last Modified:

Dynamic Approval Workflow

I have designed a LEAVE application using INFOPATH form where user needs to input the domain user id. It using custom control (contact selector). Once the user inputs the name; the associated details are fetched from active directory (For example, user email id, user department,  his manager name, manager department and manager email).  Once the user fills the form, what I am looking for is an approval workflow should be generated and assigned to the manager and HR (please note that manager is depended on the username input). This means either Manager or HR has right  to approve the leave.

The sharepoint workflow is limited and the only tool based on my study is sharepoint designer which is capable.

  • 2
1 Solution
Clay FoxDirector of Business IntegrationCommented:
You can build the workflow logic into your InfoPath form without code.

Use rules, various form views for each stage, and email submit data connections to perform the routing, etc.

I have done it before since I did not want the complexity of SP workflows.

SO new form uses default view. Once complete form status field is updated to submitted and email data connection sends to manager or whatever.  When form opens rules check the status and the username opening the form and routes to approver view or submitter view. On approve the form routes again to the next person selected or whatever.
Shailaja KumarCommented:
Another option is to create a sharepoint designer approval workflow, for reference,

You need to add your manager field to the under the property promotion section.
paritoshjaniAuthor Commented:
I have managed to use sharepoint desinger and use initiation variable for the user inputs (Approve / Reject & comments).

Now the issue is (My requirement in brackets):
1. Any user can approve or reject (Only manager shoudl have rights)
2. Any user can multiple time approve or reject (Once approved or reject, the form should get into read only mode).


Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now