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

Question

Question

Way to Retrigger a Save to Repository Activity?

asked on March 24, 2021

Is there a way to retrigger a Save to Repository activity from a form somehow?  We essentially had something go wrong with a form where the save to repository activities were creating blank docs in LF, tracked it down to volume issues, but now we have a good number of submissions that should have been saving Form docs to Laserfiche but they are all blank.  We can get Instance ID's and Submission ID's if needed but we can't think of any way for forms to essentially rerun a specific step to re-save to repository.

Is there any possible way of doing this?  API/script/DB magic, anything would be helpful, thanks.

0 0

Replies

replied on March 24, 2021

I don't think this is possible.

I had a similar situation with about 2 dozen forms that got messed up.  I opened each one individually from the Monitor page and used Laserfiche Snapshot to "print" them to the Repository.

Of course that doesn't really work if it is a lot of forms...

One thing you could try...  The field values for all the form submissions exist in the LFForms database under the cf_bp_data table.  You said you can determine submission IDs (which is what is used in that table).  You could build a workflow that cycles through each submission ID, looks up the field values, then cycles through each returned result and populates the value in to a token based on the attribute_id, and then kicks off a LFForms submission using those token values for the field variables.  In LFForms, you could make a smaller version of your form that is just started by Workflow and archives to the repository.  The hardest part will be determining the mapping of fields from the database (identified by attribute_id) to the appropriate field variables.  Assuming there are not some major complexities to your form, you could probably build out a nearly identical form this way.

0 0
replied on March 24, 2021

yah, those are kind of some thoughts I had as well.  The number of forms is pretty large and we were trying to avoid manually snapshotting each page, as that's what I offered to the client.  It's also quite a few different forms in the process, so not sure creating copies of each form would be any quicker.  Hmmm, well if Laserfiche doesn't have any good ideas it might end up being manually done..  Would there be anything in the new Web API's?

0 0
replied on March 24, 2021

The question about the API is not something I would be able to answer - but if I had to guess, it's probably pretty similar to what the process would look like using Workflow to pull data from the database and kick-off new forms.

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

Sign in to reply to this post.