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

Question

Question

More than one email in "for each value"

asked on July 15, 2020

Hi,

I need a little guidance in right direction.

I'm working on a solution where I have created WF to send email to manager when an alert date is reached on a contract. I have an " if condition" on the entry token if the date is current date. I'm using a "For Each Value" as well as "for each entry"  that has an alert date set in the metadata. We are receiving these values as rows in LF forms.

So the person in contract manager field(right now its just me for testing purpose) should receive an email for each single date but instead the manager is getting four emails for one alert date . I just want the WF to send one email on each of the alert dates.

Please tell me where am I missing?

This is the WF :-

 

I hope all this makes sense :)

 

0 0

Replies

replied on July 16, 2020

Hi there-

To do what you're asking, you should create a custom, multi-valued token at the top of the workflow. In the loop where you are currently sending the email, append a value to that token to include whatever key information about the document in question. Then, after the loops, send your email and use the token to present the information. Here is a simple illustration of the concept.

0 0
replied on July 20, 2020

I just re-read this and I think I misunderstood some of your requirements so my reply is probably a bit lacking.

It sounds like you'll need to gather all of the emails within the loops, then below that de-duplicate the list, then loop through those unique values and send emails to each manager within that loop.

This gets messier if you need to send document-specific information to each manager, but I don't want to make things more confusing without knowing the full extent of what's going on.

0 0
replied on July 20, 2020

Thanks for your solution.

While waiting for a solution I was doing a hit and trial on all possible things in Workflow and seems like the %(foreachvalue_current value) in the "to" field of email works for my requirement currently. 

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

Sign in to reply to this post.