cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Aditya1105
Frequent Visitor

PowerAutomate

Hello everyone
Is there any way to get the column header from an excel file without using a script

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @Aditya1105 ,

 

I did a test for you.

This test is based on the premise that the column names and values of the excel table have no special characters.(e.g.    :  , "  )

 

vxiaochenmsft_0-1637810929713.png

vxiaochenmsft_1-1637810953748.png

split(replace(replace(replace(string(removeProperty(removeProperty(json(replace(string(outputs('List_rows_present_in_a_table')?['body/value'][0]),'@odata.etag','odataetag')),'odataetag'),'ItemInternalId')),'"',''),'{',''),'}',''),',')
substring(items('Apply_to_each'),0,indexOf(items('Apply_to_each'),':'))

 

vxiaochenmsft_2-1637811001332.png

 

Best Regards,

Wearsky

 

 

 

View solution in original post

1 REPLY 1
v-xiaochen-msft
Community Support
Community Support

Hi @Aditya1105 ,

 

I did a test for you.

This test is based on the premise that the column names and values of the excel table have no special characters.(e.g.    :  , "  )

 

vxiaochenmsft_0-1637810929713.png

vxiaochenmsft_1-1637810953748.png

split(replace(replace(replace(string(removeProperty(removeProperty(json(replace(string(outputs('List_rows_present_in_a_table')?['body/value'][0]),'@odata.etag','odataetag')),'odataetag'),'ItemInternalId')),'"',''),'{',''),'}',''),',')
substring(items('Apply_to_each'),0,indexOf(items('Apply_to_each'),':'))

 

vxiaochenmsft_2-1637811001332.png

 

Best Regards,

Wearsky

 

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (4,209)