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

Question

Question

Filing forms attachment based on multi-valued field

asked on December 30, 2019 Show version history

I have a forms process where I am capturing a primary persons name, multiple secondary people and an attachment.  There are typically between zero and five secondary persons included in the form.  I need to file the attachment to a folder in the repository for each person involved.  Filing the document for the primary person is no problem using Save to Repository Service Task.  How do I loop through each value in a multivalue variable to file the document to the secondary person folders?

 

0 0

Answer

SELECTED ANSWER
replied on December 30, 2019 Show version history

Hi Mark

You'll need to add a "For Each File" once you retrieve the Form Upload. You will then associate the Attach File using an Activity and point it to the For each File. If more than 1 file is attached, it will also look through for each file, not that you need that, it's just a side benefit. It would look something like this

 

0 0
replied on January 2, 2020

Perfect.  That is exactly what I was missing.  I appreciate the help!

0 0

Replies

replied on December 30, 2019

It would likely be easiest using a Workflow activity. Have forms kick off the workflow at the end. From there you can retrieve the field values and the Uploads. You can loop through the multi-values using a For each Value and create an entry and attach the uploaded document to it.

1 0
replied on December 30, 2019 Show version history

To save the file in multiple folders, once you have saved the document to the Repository, is to Use a Find Entry and then Move to either copy the file or create shortcuts in the appropriate folders as opposed to saving multiple copies of the same file

1 0
replied on December 30, 2019 Show version history

I must be missing something.  I Retrieve Business Process Variables which includes the attachments.  I then used the Create Entry.  I must be missing something on how to use the retrieved attachment variable when attaching it to the Electronic Document.

 

There are three forms of files to attach.  Workflow Server local disk, Server Attachment and Activity.

I guess I don't understand how you use this to attach the retrieved upload to the created document.

 

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

Sign in to reply to this post.