You are viewing limited content. For full access, please sign in.

Question

Question

Update form field data (completed instances) using SQL

asked on October 29, 2021

Hello -

We have a case where we have a forms business process (an application for services) that goes from a public user submission, to an internal review form and then to an internal final approval/denial form.  Many of the fields are reused as it passes to the next form in the process.  We started out with a field "City" that was just a text field with suggested entries.  After some time and seeing lots of data cleanup issues, we decided to create a new City field using a drop-down list.

Well a mistake was made and the original City variable was deleted--thus erasing all prior completed and in-progress data.  We have an export of all data just before that variable was deleted, but we would like to know if there is a way to repopulate the new City field for completed instances through SQL for ongoing reporting purposes.

We have a raw data export file with Instance IDs and the city field we can iterate through, but is there a SQL statement we can use to accomplish this?  We are only looking to repopulate the City data for the completed instances.

Has something like this been done before?  Currently using 10.4 Rio.

Thank you in advance for your guidance on this.

1 0

Replies

replied on February 3, 2022

Hi, Did you find a solution? We have a same case where we want to update a field data with the comments entered for completed instances for reporting/searching purpose.

0 0
replied on March 24, 2022

Hello.  I haven't found a good solution for this yet.  From what I have seen it is possible but discouraged.  I would like to get a SQL statement to generate a list of the Inactive/Complete SubmissionIDs by InstanceID so I can potentially iterate/update through them in Workflow, or find the correct bp_data fieldID for what I want to update and use SQL to pull the corrected values from a flat file.

Someone has to have needed this done before.  Create a separate SQL table that pulls either the last updated submission values for in-progress forms or final values for completed instances.  That way you can modify and report off that?

1 0
replied on April 5, 2022

Actively looking for a solution for updating completed instance data as well to clean up reporting data.

0 0
replied on April 5, 2022

If you are interested in this feature, check out and add to or upvote this request https://answers.laserfiche.com/questions/197184/Cleaning-up-historical-Forms-data-for-reporting

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.