Click here to Skip to main content
15,882,768 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
I do not want to submit InfoPath list field's data to single SharePoint list as we usually do. Rather for example,I want to submit half of the field's data to one SharePoint list and remaining to the different SharePoint list. I worked on how to fetch data from external SharePoint lists in single InfoPath list but here I am talking about exactly opposite scenario.

Please anyone could help me to fix my problem.

1 solution

One way would be having different submit connection with each having the fields from the different SharePoint list. On button click write a rule to populate the data in these connection fields and call both submit connection one after the other.

Other way to do it would be writing a WCF service and using it as Submit connection in the InfoPath form. In WCF service you can write the logic to segregate the different list related data.

Another way would be writing a VSTA code in the InfoPath form and using SharePoint object model to submit the data in the SharePoint list.
Share this answer

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

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900