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

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Re: Is there any way to get the column headers from Excel file & exact match it with predefined array?

(0) ShareShare
ReportReport
Posted on by 986

Hi @Paulie78 , @ganeshsanap , @BFS , @DragonLord @Serbay ,

I had a requirement which was as follows:
In Power Apps using attachment control user can upload the file and the contents inside are extracted with the help of Power Automate wherein the uploaded file contents are extracted and then stored in a SP list (which has columns similar to that in Excel file) basically I am importing data from excel and storing in my data-source
(For more information you can check my post: Import from Excel ).
This is the flow:

Sidhant_02_0-1705043365283.png

 

(Which take the file input from Power Apps attachments control and then maps the details into SharePoint list)

SharePoint list:

Sidhant_02_1-1705043364519.png

 

Where the data extracted by the flow will be stored

In Power Apps I have provided an download option which users can use to download the Excel template in which they can enter the necessary details and upload the file (to avoid any discrepancies in the structure), the template is:

Sidhant_02_2-1705043364714.png

 

So now once user uploads the file before the extraction process starts I want to also check if the file which is uploaded is similar to the template if yes continue the normal flow else give an error message saying the file format is mismatch and stop the process.
If you guys have any idea please let me know.

Regards,
Sidhant.

I have the same question (0)
  • FeierCiprian Profile Picture
    20 on at
    Re: Is there any way to get the column headers from Excel file & exact match it with predefined array?

    After list "List rows presented in a table", add Parse JSON and add the Shema using previous step output result.
    if the file has different Headers, your Parse JSON will fail with mention that the specific header is missing.
    after this you can use 'Condition Run after' = If fails  on the next step on a parallel branch.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 535 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 348 Moderator

#3
developerAJ Profile Picture

developerAJ 262

Last 30 days Overall leaderboard