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 / Getting a table header...
Power Automate
Unanswered

Getting a table header with line break

(0) ShareShare
ReportReport
Posted on by 9

I'm working on a flow which I need to get data from an excel table through expression. I am using a Compose (that I call 'Object') to track the ID of an 'Apply to Each' loop interaction and the data, and I can get the data quite well using 'outputs('Object')['Data']['Header']'. This is working perfectly.

 

However, some of the headers on the Excel file I'm reading have line break and that's something I cannot change on the Excel file myself. This is leading to errors while reading the header as it says that's not a valid property. I have to find a way to add the line break on the expression so the flow understands that's not only a space, but a line break space.

I tried adding \r, \n, <br>, <br /> copying the actual break line space from a dynamic content, but nothing works, it always gives me the same error.

 

The error it gives trying to use with the space:

2023-02-01_15-00-29.png

 

The Excel file heading:

2023-02-01_15-02-04.png

 

How it's written:

2023-02-01_15-07-33.png

 

Categories:
I have the same question (0)
  • Verified answer
    eloss Profile Picture
    9 on at

    After searching for different queries on the internet, I came across this page which has some possible solutions. One of them being the use of the concatenate method with the code decodeUriComponent('%0A') in where the line break would be on my Excel header. That's the unicode for a breakline, it seems. And that actually worked!

     

    My final expression now looks like: 'outputs('Object')['Data'][concat('Job',decodeUriComponent('%0A'),'Title')]' and returns the desired information.

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