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

Question

Question

Is there any way to conditionally add email recipients to an email task in Workflow?

asked on January 29, 2021

I am building a workflow that is centered around an awards program. We have an award program that allows employees to recognize each other for a job well done. When doing so, they can (on a Laserfiche Form) optionally list the nominated employee's supervisor, director, and/or manager, along with their email addresses, and they will also get notified that that employee received an award.

What I'm looking to accomplish is not to just send them a unique email, which I've already built without issue, but copy them on that email to the employee, and only if they're listed. So for example, I'd like to cc the supervisor and director if they're listed, but not send anything to the manager if the employee who submitted the award didn't include the manager's email address.

Is there any way to achieve this? I can't seem to find a way to pull in a variable/token value to the email's cc field that doesn't throw an error when not populated with an email address. Any help would be greatly appreciated! Thanks!

0 0

Replies

replied on February 2, 2021

Brian, 

Thank you! I don't know what my issue was then, since it wasn't nearly as forgiving. I ended up creating tokens if their information was populated, and formatted their email to be ", director@email.com" so that it listed them out "properly". It's working now though, which is what matters at the end of the day! Thanks again, and have a great rest of your day!

1 0
replied on February 2, 2021

It's not clear to me if you're sending the email through Workflow or Forms. But either way, what was the error you were seeing?

0 0
replied on February 2, 2021 Show version history

Yes, you can just add the form variable to the email activity. Email addresses are pretty forgiving, so if any of them are empty it just won't add them, and will format the email "send to" field like this, which is perfectly valid:

employee@email.com; ; ; director@email.com; ; manager@email.com; ;

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

Sign in to reply to this post.