1

I created a flow that will trigger an email when the status of a list item is changed to "reply."

The issue I am running into is some list items include an attachment and some do not. The original flow I created did not include any attachments in the triggered email so I created a new flow that would include any attachments. The problem is it is sending 2 emails - one with an attachment and one without. If the list item does not have an attachment to include it still sends 2 emails just without an attachment in the second email.

Is there a way I can adjust it so it will only send 1 email either with or without an attachment depending on if the list item includes an attachment?

1st steps

final steps

1
  • probably best to paste a screen of the Flow. Is there an "Apply to each" loop in the Flow? Commented Feb 5, 2019 at 18:40

1 Answer 1

1

If you get the attachments and loop through them, then:

  1. add the "initialize variable" action towards the top of your flow, before the loop. Perhaps a variable named varItemHasAttachments, with a value of false.
  2. In the loop, add the "set Variable" action, and set varItemHasAttachments to true.
  3. Add a condition, and send the appropriate emails based on the value of varItemHasAttachments.

Or, if you really want to keep it as two flows, add the same logic to both, and then use the condition to determine if the email should be sent.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.