Click here to Skip to main content
11,711,009 members (86,848 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: sharepoint2010
Hi All,

I am new to Infopath and Workflows. I have a task given for workflow as below. Please help me out what would be the workflow needed(Sequential or state machine) and also how to achieve this. If any code given is more appreciated.

Below is the requirement:
1) "Test" Form library created in sharepoint 2010.
2) "Add document" to the form library is a infopath form filled and submitted(can be n number of forms)
3) Infopath form has few fields(like ManagerId and ManagerName) and has 2 buttons(Save and Submit)
"Save" --- only save the infopath form in the library- NO action taken(no workflow attached)
When click on submit, workflows needs to start.

4) Workflow process: Whenever new infopath form filled and submitted:-
1) Sets the workflow task field in library as "Submitted for Authorization".
2) Sets the "Is Submitted" field in library as "No".
3) Creates a temporary form library("Sample") and Copy all the Infoth path forms published to Form libray("Test") (where workflow task field = "Submitted for Authorization"])
4) capture ManagerId and ManagerName from the infopath form
5) Sends an email to the Manager(Manager is based on the ManagerId and ManagerName)- stating to authorize the form.
There is few lines to mail description(need to write). Also the mail contains a sharepoint site link to newly created Form Library "Sample" where all the forms are waiting for Authorization.
6) Manager clicks on the link, checks all the infopath form and approves.
7) Once forms are approved change the workflow task field to "Authorized" and "Is Submitted" field to "Yes" in both form libraries(Test and Sample)
8) Need to update the database table same time for the Is submiited flag as same.
9) Delete all the forms from the "Sample" form libray where task = Authorized.

Thanks in Advance
Posted 11-Oct-12 4:48am
Edited 14-Oct-12 22:52pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 549
1 OriginalGriff 255
2 Peter Leow 154
3 Maciej Los 120
4 Abhinav S 120
0 Maciej Los 95
1 Richard MacCutchan 90
2 Abhinav S 90
3 OriginalGriff 80
4 Member 4653839 50


Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 15 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100