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

Question

Question

Update an existing field data with submitted comments for reporting purpose...

asked on February 3, 2022

Hi, We have a case where there are 5K-6K completed instances of one of our process. There was an important piece of information which users were entering in the comments before the final step submission. We require this information to be a part of our custome report so that users may perform search on it. This information should supposed to be entered in one of the field but unfortunately that wasn't taken care of while designing the process.

As the comments cannot be added custom reports column, so the only option we are seeing is to somehow write a query to get all completed instances final submission comments and update one of the existing field with comments. So that the field can be added in a custom report.

I would really appreciate if someone can assist in writing such query on Forms database. For the future instances, we can hide the comments and make other field mandatory, so user won't miss it.

0 0

Replies

replied on February 5, 2022

Thanks James, cf_bp_data actually contains the process variables data which we can find through attribute_id and submission_id but not the comments. I found out that comments are stored in cf_submssions.

So I had to get my comment from cf_submissions table. I just got the last comment if any in my case. And then I updated the variable of the process in cf_bp_data against it's attribute_id and submission_id with that comment. I also updated the formatted_variables table agianst the attribute_id and bp_instance_id because the custom report won't be able to perform a search on field without it.

1 0
replied on February 7, 2022

Oh yeah... in that form, workflow grabs the comments and puts them in a form field.

0 0
replied on February 3, 2022 Show version history

Well, it looks like the comments are stored in cf_bp_data.  You'll need to determine what your business process id and attribute id are.

 

0 0
replied on April 5, 2022

It would be helpful if a way to edit data in completed instances. If you are interested in this feature, please add to or upvote this post https://answers.laserfiche.com/questions/197184/Cleaning-up-historical-Forms-data-for-reporting

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

Sign in to reply to this post.