cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Include an Attachment when condition is False

I am experiencing issues with creating a flow that is triggered when item is created in SharePoint.  I want to create a condition that includes attachments (if included in the SharePoint list trigger), not all entries will. As of now, I have a field titled company initiated (which is a yes/no field), if true send an email without attachment, if false send an email with attachment.

This is what I am trying to accomplish.

Trigger - When an item is created

Get Attachments

Condition

If Yes (send email without attachment) or If No (send email with attachment)

End

Any assistance would be greatly appreciated.

Thanks,

Michelle

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Good morning Lin,

 

I changed the condition to focus on whether the record entered has an attachment or not.  What I ended up with works perfectly to meet our needs. 

 Attachment condition.pngSend Attachment If No.png

When a record is entered with an attachment, an email is sent to a specific department with the attachment so they can process accordingly.  When a record is entered without an attachment a different email is sent to a specific department so they can create the requested document.

View solution in original post

3 REPLIES 3
Highlighted
Community Support
Community Support

Hi @mthompson,

 

You said the company initiated is Yes/No type, so I guess the issue you met is no matter the value of company initiated is Yes or No, the Flow always goes to No branch, right?

If my guess is right, the workaround is input boolean value true into the condition action instead of Yes. Because Yes/No type column output is boolean, for example:

Screenshot 2020-10-30 134704.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted

Good morning Lin,

 

I changed the condition to focus on whether the record entered has an attachment or not.  What I ended up with works perfectly to meet our needs. 

 Attachment condition.pngSend Attachment If No.png

When a record is entered with an attachment, an email is sent to a specific department with the attachment so they can process accordingly.  When a record is entered without an attachment a different email is sent to a specific department so they can create the requested document.

View solution in original post

Highlighted

Hi @mthompson,

 

Glad to know you find a way to solve it.

If your problem has been solved, You could go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

Best Regards,
Community Support Team _ Lin Tu

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Users online (8,630)