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

Question

Question

Creating Tokens with Multiple Values

asked on April 15, 2014

I have search the "Laserfiche Answers" and have found items that pretty much pointed me to what I want to do, but I'm missing something and can't get it to work.

 

So here is what I'm trying to do.

 

Search my repository based on Location,DeliveryDate,DocumentType.

 

All is good at this point.  In my test environment, it finds the three documents that I would expect it to find.

 

Each one of these documents have a "All_OrderNumber" field.

 

I want to create a token to store these OrderNumbers in and then create an email with that token to list all the OrderNumbers.

 

This is what I have tried.

 

Start Workflow

 

Date Token Calculator (This is assign to the search repository)

Search Repository

For Each Enty

-- Retrieve Field Values  (All_OrderNumbers)

-- Assign Token Values "OrderNumber Token" Multiple Value with (%(RetrieveFieldValues_Any_OrderNumber)

-- Assign Token Values 2 "All OrderNumbers" Multiple Value with %(OrderNumber Token#[]#)

Email  (Configured with the "All OrderNumbers" token.

End WorkFlow

 

For the OrderNumber token, I have it indexed and separated by a Line Break.

 

I receive the email with only one of the three "OrderNumbers"

 

Within "Entries Tab" when I was trouble shooting, it does list all three entries and ordernumbers.

 

So I know I'm close, I've tried multiple different things, but I'm thinking I have the workflow sequence wrong. Or of course I just have everything wrong. smiley

 

Any help would be great.

 

Thanks

 

 

 

 

1 0

Answer

SELECTED ANSWER
replied on April 15, 2014

Check this article out. really helped me out

 

http://www.laserfiche.com/solutionexchange/article/amplify-your-workflows-with-html

2 0

Replies

replied on April 15, 2014

The issue here is you are creating the token inside of the loop. Everytime the "For Each Entry" runs it will re-create the token, eliminating the previous values.

 

To fix this, add an Assign Token Values up at the top of the workflow creating a blank multivalue token, then in the For Each Value use Assign Token Values again to edit that token by appending the values, instead of creating a new token.

3 0
replied on April 16, 2014

Thanks Matt and Doug...

 

Both your suggestions helped.

 

I was getting better results in my email, it was giving me 3 ordernumbers, but all of them were the same.

 

I was about to reply asking for help again, but thought I would look over the workflow one last time and realized that in the RetrieveFields, I was pointed to the Search Repository and not the "For Each Entry".

 

Once I made that last change, all is working.

 

Again.. thanks to the both of you.

 

John

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

Sign in to reply to this post.