Quantcast
Channel: Nintex Connect: Active Threads
Viewing all articles
Browse latest Browse all 4245

Execute SQL from InfoPath form library

$
0
0

Hi All,

Is it possible to query an Infopath form in a form library and iterate through the values in the form to be able to send this data to a SQL table?

Currently all I can think of is the use of Query XML action and do a query for each single field to put that in a variable.

Then use the Execute SQL action to insert the data into the table.

This works, but since the form has over 1 hundred fields, I need to create a lot of variables and also do a lot of querying.

Also it would not be the best option to support such a solution.

My Infopath structure looks like this:

 <my:fields>
<my:Register_incident_10 xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2013-01-16T10:42:49">
<my:BusinessGroup>LIP</my:BusinessGroup>
<my:PlantLocation>K2 Test</my:PlantLocation>
<my:Unit>8</my:Unit>
<my:UnitName>Overige afdelingen</my:UnitName>

And a lot more fields.

I tried to iterate through the xml, but couldn't get that to work and even then I need to create a lot of variables to store the values right?

Current solution:

Infopath structure

QueryXML

SQL Action

Thanks in advance,

Sjaak


Viewing all articles
Browse latest Browse all 4245

Trending Articles