Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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

  • Verified answer
    v-chengfen-msft Profile Picture
    on at
    Re: Condition to check if there is an attachment and if there is skip the step

    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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

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,708 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,030 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow