web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Condition to check if ...
Power Automate
Answered

Condition to check if there is an attachment and if there is skip the step

(0) ShareShare
ReportReport
Posted on by 9

Hi

 

So I have created a powerautomate to create a planner task after a form is submitted. Users have the option to include an attachment on the form. I'm a bit stuck because I want to create a condition to check if there is an attachement and if so to parse JSON and if not to continue to the next step.

 

I'm a bit stuck because when I test it, it doesn't seem to like my condition. I'm also not sure if I need to add an action to the 'if yes' section so it skips the parse json and just continues to the next condition.

 

I'm fairly new at this so sorry if this is super obvious.

 

Thanks

Categories:
I have the same question (0)
  • Verified answer
    v-chengfen-msft Profile Picture
    Microsoft Employee on at

    Hi @clashingblues12 ,

    Judging from the flow error screenshots and flow process screenshots you provided,
    The reason for the error is:

    You added "Please" to the content parsed by [Parse JSON], which caused the parsing to fail

    vchengfenmsft_1-1671416661938.png

     

    Do you want to determine whether a user has uploaded a file?

    Please try:

    You don't need to set anything in the case of "Yes", and the flow will continue to execute to the next [Condition]

    vchengfenmsft_0-1671416522065.png

     

    There is another solution, check this link:

    Solved: Re: MS Flow failing when there is no attachment/s - Power Platform Community (microsoft.com)

     

    Hope this helps you

     

     

    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

    Best Regards

    Cheng Feng

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 784

#2
Valantis Profile Picture

Valantis 589

#3
Haque Profile Picture

Haque 522

Last 30 days Overall leaderboard