How can I run a workflow to use Execute SQL and insert looping through the entire list


Badge +1

How can I use execute SQL to insert records to a Oracle table and  looping  through a list .    I have tried calling the Startworkflow on list item, but it seems to insert the

same row over and over


4 replies

Userlevel 5
Badge +12

Inside your workflow you will first do a Query List action to capture all the list items into a Collection variable.   You will then use a For Each action to loop through the collection and inside of this loop using the Execute SQL statement to insert your records row by row.

Thanks

Badge +7

I agree with Mike. 

Badge +1

It worked!  Thanks

Userlevel 5
Badge +12

Great to hear happy.png please mark my answer as correct to close this one out.

Reply