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 / How to Implement Data ...
Power Automate
Unanswered

How to Implement Data Validation for User-Uploaded Excel Files in Power Apps Using Power Automate

(2) ShareShare
ReportReport
Posted on by
Question:
I'm new to Power Apps and Power Automate and need assistance with setting up data validation for Excel files uploaded by users within a Power Apps application. Specifically, I want to create a Power Automate flow that performs the following steps:
File Upload and Storage:
  • Allow users to upload an Excel file through the Power Apps interface.
  • Upon submission, trigger a Power Automate flow that renames the file and saves it to a designated SharePoint folder.
Data Validation:
  • Read the contents of the uploaded Excel file, which contains multiple rows of data organized in a table format.
  • Compare the headers of the uploaded file with those of a predefined master template to ensure they match.
  • Verify that the number of data rows in the uploaded file is greater than one.
User Feedback:
  • If the headers match and the row count is sufficient, display a confirmation message to the user.
  • If there are discrepancies, prompt the user to download the template again and re-upload the corrected file.
Approach:
  • Utilize Power Automate to handle the file upload process, including renaming and storing the file in SharePoint.
  • Use the "List rows present in a table" action to retrieve data from the Excel file.
  • Implement conditional checks to compare the headers and count the rows.
  • Provide appropriate feedback to the user based on the validation results.
Questions:
What are the best practices for setting up a Power Automate flow that integrates seamlessly with Power Apps for file uploads and data validation?
How can I efficiently compare the headers of the uploaded Excel file with those of a master template within Power Automate?
What techniques can be employed to accurately count the number of data rows in the Excel file using Power Automate?
Any guidance or step-by-step instructions on implementing this functionality would be greatly appreciated.
Categories:
I have the same question (0)

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

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard