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

Question

Question

Run Business Process based on selection of items

asked on June 21, 2019

Hi,

I am trying to build a WF which will be run via Business Process from within the client app based on a selection of files.  For each document which is selected the WF would list a specific field from that document and add it to a list which will be added to an email.

 

As an example, a user selects 5 files and runs the BP:

Document Name                  Field 1 (Case Number)

File 1                                       001

File 2                                       001

File 3                                       002

File 4                                       003

File 5                                       003

 

The email would return:

The following case numbers were selected:

001

002

003

 

and not

001

001 <don't need duplicates

002

003

003 <don't need duplicates

 

I currently can't get the starting entry to work and therefore can't setup "For Each Entry" because it requires a starting entry.

 

Any help would be appreciated.

Anthony

0 0

Replies

replied on June 21, 2019 Show version history

For Each Entry does not require s starting entry, it requires a set of entries (usually from a Find Entries or Search Repository activity).

In this case, though, I'd go with a For Each Value that runs through the list of document names, finds each one, read its field and adds it to a multi-value token.

You can then run "remove duplicates" on this token before putting it in the email.

Sorry, I'm not sure why I read this as involving Forms. Laserfiche Business Processes can't run on a collection of documents. They can only run on a single entry (document or folder).

1 0
replied on June 24, 2019

Ha!  Don't worry.  I did think, how did I miss this.

 

What I have done is get the BP to run against the complete folder.  Which has worked.  The "Remove duplicates" is a great find though - thank you!

 

Anthony

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

Sign in to reply to this post.