Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Include an Attachment when condition is False

(0) ShareShare
ReportReport
Posted on by 43

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

  • v-litu-msft Profile Picture
    on at
    Re: Include an Attachment when condition is False

    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

  • Verified answer
    mthompson Profile Picture
    43 on at
    Re: Include an Attachment when condition is False

    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.

  • v-litu-msft Profile Picture
    on at
    Re: Include an Attachment when condition is False

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,522 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,890 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow