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 Based on For...
Power Automate
Unanswered

Condition Based on Form Upload

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I am trying to create a condition where if an MS form is submitted with an Uploaded document attached it will it will Parse the JSON and attach the file in sharepoint. But if the form DOES NOT have an uploaded document attached I just want it to create the item in sharepoint. Test View.PNG

Categories:
I have the same question (0)
  • manuelstgomes Profile Picture
    6,625 on at

    Hi @Anonymous 

     

    The file is saved into your OneDrive. You can get a list of the files in the "Files Uploaded" Property.

    Screenshot 2020-11-25 at 08.48.05.png

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    Cheers
    Manuel

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    Cheers
    Manuel

  • Clifferton Profile Picture
    94 on at

    Was this question ever answered? I'm trying to do the same thing.

  • DCSD89 Profile Picture
    8 on at

    A quick cheat on this is to set the configure run after settings (click the option for the following steps and then click configure run after)  for the query(s) following the parse json to run after the failure of the previous step. It's not clean and I don't like it but haven't worked out how to do a condition based on whether there was a response to the upload file(s) query.

  • Suggested answer
    Heath616 Profile Picture
    27 on at
    Hey! I was looking to do the same thing and this worked for me. Instead of "Users" enter the upload field dynamic content in the Empty formula and set it not equal to True: 

    Condition If Blank with Empty Function

    SharePoint has some more complex data types that will return an array of values, such as a multi-select person field.

    When the multi-select person field is left blank in SharePoint, it will return an empty array [] to Power Automate.

    This means you need to check if the array is empty. This can be done with the empty function, which returns true if an array is empty.

    empty(items('Apply_to_each_SharePoint')?['Users'])

    The above expression will check if the array from the Users field is empty.

    Since the empty function returns a true or false value, you need to compare this to either true or false on the left side of the condition. This true value also needs to be entered as an expression.

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard