cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mthompson
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

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
v-litu-msft
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.

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

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,967)