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

Question

Question

Move forms to sub folders based on form variables

asked on May 25, 2017

I have a form (version 10) with a list of names drop down as a variable and the date the form is filled out. I would like to place the form  in  a folder with the name from the dropdown and the year in which it was filled out.

 

I thought I could just use save to repository and add the name variable at the end of the destination to put it in a folder named after the choice from the drop down that was chosen.  So if the name is Brady and filled out on 5/5/2017.  I would want the form to go into the "Brady" folder and into a sub folder of "2017".  

 

It doesn't seem I can do this so I was looking into a workflow  that uses "Retrieve laserfiche forms content" and then route to folder based on the information pulled from there (Name and Date). Attached image.

 

I am getting an error message that says "This workflow does not appear to be started by forms. The forms instance id was not specified or was empty"

 

Is there another way I can go about this?

workflow.JPG
workflow.JPG (19.79 KB)
0 0

Replies

replied on May 25, 2017

Is your Workflow called by the Form process ?

If so check, the advanced properties of the "Retrieve business process variables" to see if the Instance and the submission ID are the one from the form who started the Workflow.

 

If you want to start the workflow with a starting rule or something, you'll have to provide the Instance and Submission id of the submitted form with a token (In the name of document by a pattern matching or a metadata).

 

 

Hope it helped !

0 0
replied on May 25, 2017

Right now the workflow is not tied to/ called by the Form process.  I thought I could just have the workflow run every so often( maybe once an hour) to clean up the folder in which the form gets placed. But it doesn't seem to work when I just run it manually. None of the folders are created and the documents still remain where they were.

 

What I would like is to just have them placed in the sub-folders according to name and date as they are created, case by case

 

So are you suggesting I should have the form  service task  place the form in the repository and then have another  service task call the workflow?

0 0
replied on May 25, 2017

You could run the Workflow every X minutes/hours but the "Retrieve business process variable" has to know from wich form submission it has to take the info from.


In the name or metada of the form you save in the repository, you could add the instance id and the submission id so you could give the info to the "Retrieve bussiness process variable".

 

Or you could call the Workflow with the form process each time a form is submitted, right after the form saved the document in the repository, so the form submission is able to give the Workflow the instance and submission IDs.

0 0
replied on May 25, 2017

Okay it seems like tying it to the form process is the best bet. Please bear with me as I haven't done this before.

 

I have the workflow created(image attached). I think I have it mostly configured but wondering if I am missing something because after filling out the form it doesn't seem to create the folder based on what was chosen from the dropdown.

workflow.JPG
Form Process.JPG
Tie workflow to process details.JPG
WorkflowforForm.JPG
workflowproperties.JPG
workflow.JPG (19.79 KB)
Form Process.JPG (21.62 KB)
0 0
replied on May 26, 2017

As far as i understand your process, the Workflow move only one document at a time (the saved form itself), si I don't think you would need a "For each entry" loop, but that's not probably the problem for the document not moving a the right plage.

Have you checked the Workflow log to see if there was any error while this Workflow was running ?

Is the document moved at the wrong place or not moved at all ?

If you could post screenshots of the activities properties, maybe there is a little mistake somewhere.

0 0
replied on May 30, 2017

The documents don't move and the sub folders do not get created. I have tried a few times creating and submitting the form but they just get placed in the top folder.

Activities.JPG
Activities.JPG (65.65 KB)
0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.