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

Question

Question

workflow sending multiple emails

asked on June 5, 2014

 So I'm trying to create a simple workflow that when a user "assigns" a folder to another user, that user get's a link to that folder in an email.  I'm doing a Retrieve Field Values to pull the template info, then I do a Search Repository (searching for the folder name based upon the Template fields that created the folder), Returning the first result (should only ever be 1 result...but just to be safe), then emailing the user and using the "Search Repository, First Result" activity as my attachment.  I'm able to get the attachment...however, Workflow wants to send 2 emails each time.  Not sure why it keeps sending two?

0 0

Replies

replied on June 5, 2014

At this point it's hard to tell what may be going on, but there seem to always be two instances of the workflow getting triggered at the same time so that seems to be related. What does your starting rule(s) for that workflow look like?

0 0
replied on June 5, 2014

Alex,

For the Email Workflow I have, there is no starting rule as it's being Invoked in another workflow. 

0 0
replied on June 5, 2014

You'll need to investigate what's happening with the previous workflow and find out why it's invoking this email workflow twice. Look into how the previous email is doing the invoking and could it be looping and invoking the workflow twice, or perhaps the previous workflow itself is actually being triggered twice as well.

0 0
replied on June 5, 2014

If you look at the screenshot of your search results you'll see every time it is starting two workflows at the same time. The workflow isn't sending two emails, two workflows are starting and each sends an email.

 

I would start by checking your starting rules. Is there a reason there that you are starting the workflow twice?

 

If you can't figure it out from there, go into the Workflow Admin Console and open the Subscriber Tracer. There you can see exactly what evaluated to true to start the workflow and will help you debug why you are getting multiple instances.

 

0 0
replied on June 5, 2014

Matt,

I'm not seeing any other Workflows being kicked off with those conditions in the Trace Viewer (see below).

 

 

0 0
replied on June 5, 2014

If you aren't using starting rules then the subscriber trace won't be too useful.

The workflow that invokes this one is starting it twice. Is it in some sort of loop? Is that workflow being started twice?

0 0
replied on June 5, 2014

It's possible because it starts when an entry is created in a "Incoming Documents" folder.  However, I'm Invoking the Email Workflow with a "Move Entry-Parent Folder" Activity as I only want the folder emailed once not for each document.  

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

Sign in to reply to this post.