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

Notifications

Announcements

Community site session details

Community site session details

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

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard