We have a customer that built a form for Vendor registrations but since the Company Name field is within a Table, they cannot sort by it in their Forms report. We are trying to essentially pull that previously submitted Forms data from the Forms Database and resubmit it using Workflow into a new Form where the Company Name is not in a table so they do not have to manually resubmit everything.
I am using this SQL query to grab each Submission ID for that Form and then a 2nd query to combine all of the Forms data from the various tables within the Forms DB:
SELECT cf_fields.*, cf_bp_data.*
FROM cf_bp_data INNER JOIN cf_fields
ON cf_fields.attribute_id = cf_bp_data.attribute_id
WHERE form_id = '68' and submission_id='574'
order by submission_id
But I am having a hard time figuring out the best way to tell Workflow where to put the data in the new Form . Anyone know of a way I can accomplish this if it is even possible?