C # to programmatically fill out an InfoPath form?

Is it possible to fill out an infopath form and submit it through the C # console application?

If so, how?

+3
source share
3 answers

Yes, you can create an XML file in your C # application and push it into your SharePoint form library. Sharepoint does not understand any difference.

Just provide two things:

  • Your XML Must Be Validated Using the Infopath Schema .
  • Be sure to add XML processing instructions so that Sharepoint and Infopath know how to process the XML file. (Just “steal” it from the generated Infopath XML.)
+4
source

MrFox , Infopath - Xml, , , Xml, Infopath. , , Infopath. , Infopath Infopath. . XDocuments2.NewFromSolution(), .

0
  • Identify field names and their XML representation
  • Reading an InfoPath form element from an InfoPath document library.
  • Load XML InfoPath Attached XML Presentation Forms in XmlTextReader
  • Read each node using XmlTextReader and extract user input based on our requirement
0
source

Source: https://habr.com/ru/post/1706071/


All Articles