How do I submit an InfoPath form to multiple document libraries?

I need to create an InfoPath form that submits to different SharePoint libraries. Basically, there should be a drop down list where the user selects a specific department. The selected department will then determine which SharePoint library the InfoPath form is accessing and who is notified to approve the request form. Once the form has been approved, the form must be moved to another SharePoint library for processing by our payroll department. Can someone point me in the right direction to achieve this. thanks in advance

+2


source to share


3 answers


One way to handle this is to wrap the XmlFormView web part in a custom website and respond to the SubmitToHost event. To do this, you need to set the Send to InfoPath option to Hosting Environment. This way you can save the form in any library based on code and other form data.

For some tips on wrapping an XmlFormView see How We Did It - Automating Service Requests Using InfoPath Forms Services

Depending on the library you choose, you might have a secondary data source in the form pointing to the SharePoint list for departments and the URL of the library to which the form will be submitted. Then your code can get the list to submit from the form data.



As far as approving routing to the new library, it sounds like a custom workflow or SPItemEvent handler. In the second case, you can respond to the ItemUpdated event and create a copy of the form in the new form library. Not sure if you can do this with SPD 2007 workflow.

Hope this helps a little.

+1


source


there is one sheet document containing the form. load an event or workflow into libaryand to move the form on saving,

or



there is one sheet document containing the form and different vuiews are filtered on it.

0


source


Not sure if you are still looking for a solution for this, but don't mind adding my two cents. I think you can accomplish this in InfoPath using rules in the submit parameters. First, define several data connections, one for each library. Then set the rules using a pair of conditions / actions. For example, if the value in the combo box is x, submit using Submit Data Connection1, ...

In terms of sending notifications, you can attach workflows to each of the document libraries. Hope it helps.

0


source







All Articles