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

Question

Question

Lost file upload info in forms - is it possible to get back via workflow?

asked on May 21, 2018

Hello,

I have a forms process that was upgraded from 9.1 to 10.2 in December; and fell victim to the issue with disappearing file upload controls (see https://answers.laserfiche.com/questions/124034/Save-to-Repository--Strange-Behavior#142218 ). So it silently stopped saving attachments to my repository as originally configured.

I have since fixed the forms process just by copying it (and the new copy seems to now work fine); however, now I have several instances where the user uploaded a file in the form; but then it never got saved into the repository. Is it possible to extract this file via workflow somehow? If I look in the forms instance, I can click on the attachment variable and actually open the file. I see that the value for the attachment variable is like the following: 585:\9c3df41a-dbb8-4eb8-8d11-fb32188bd20b\RetrieveBusinessProcessVariables\8603\15350.pdf

Please advise! I am hoping I can get these orphaned attachments into the repository.

Thanks,

Julie

0 0

Replies

replied on May 21, 2018 Show version history

You would need the instance and submission IDs of those forms. Workflow could retrieve the data and use Create Entry and Attach Electronic Document to save it to Laserfiche.

 

0 0
replied on May 21, 2018

Thanks Miruna. Is it possible to Attach Electronic Document from the file upload variable value in the form (i.e., in the format of 585:\9c3df41a-dbb8-4eb8-8d11-fb32188bd20b\RetrieveBusinessProcessVariables\8603\15350.pdf ). If so, how is that done? I'm searching for that file on my servers but cannot find it.

0 0
replied on May 22, 2018

If you set the Attach Electronic Document activity to use files from the server's local disk, then you can use the token generated by Retrieve Business Process Variables for the upload field to specify the file location.

 

0 0
replied on May 22, 2018

Thanks Miruna. One question regarding getting the file upload variable value. This is a multi-valued variable. They could have multiple attachments. So if my variable name is Attachments (from Retrieve Business Process Variables), then how do I get the values? %(RetrieveBusinessProcessVariables_Attachments) is showing as null for some reason.

Thanks,

Julie

0 0
replied on May 22, 2018

I added a For Each File loop using the file upload Variable name as the File Collection. It went one step further and gave me the file name (in its basic form, e.g., myfile.pdf) with no path or anything. But then I get the message "The File 'myfile.pdf' cann not be found. [0453-WF1]"

0 0
replied on May 22, 2018

Hello again,

Somehow that long file name and path came back and so I am iterating through the file upload value to get the value (in case there is more than one). I see it populating the variable with that path/file value but then I get an error. See below. Any ideas would be great.

Thanks,

Julie

 

 

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

Sign in to reply to this post.