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 get the values ...
Power Automate
Answered

How to get the values of each row from a specific column which contains "\n"

(0) ShareShare
ReportReport
Posted on by 5

I have an Excel table which contains a column named:

"Date

(dd/mm/yyyy)"

*** I cannot change the column name ***

The first step I have done is "list rows in a table", then I loop over every row to try to retrieve its values with compose action. However, it fails using the system generated dynamic expression (btw, the expression is "item()?['Date (dd~1mm~1yyyy)']". The result keeps showing blank value.

 

After numerous of testings. I tested a created column named"Date (dd/mm/yyyy)", with expression  "item()?['Date (dd/mm/yyyy)']", and this works. So, I am sure that the problem is on "\n" and I hope to know what the expression should be to represent column name:

"Date

(dd/mm/yyyy)"

 

Thank you!

Categories:
I have the same question (0)
  • Verified answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @SDX1 

     

    This seems to be strange, i am wondering why the system generated dynamic content for that column is not working . 

    Well i have a solution for this 🙂

     

    Actually you have to specify the new lines in the column name when using item()?[column name]

     

    see below, in a compose action, i have placed the column name:

     

    Nived_Nambiar_7-1705338289024.png

     

     

    expression used in compose action under apply to each loop 

    items('Apply_to_each')?[outputs('Compose_2')]
    as you see in expression, it will take the column name from compose 2 action.
     
    Well another way without specifying column name in compose action !
     
    If you see there are two new lines in column 

    Date

     

    (dd/mm/yyyy)

    So while retriving the column value from that row, use below expression:
    Nived_Nambiar_0-1705338933367.png

     

    Expression: 

    items('Apply_to_each')?[concat('Date',decodeUriComponent('%0A'),decodeUriComponent('%0A'),'(dd/mm/yyyy)')]
     
    Here i won't be using column named specified in a compose action, instead i use concat function to concat the file name with new line represent by code decodeUriComponent('%0A')
     
    Hope this info helps !
    Seems system generated dynamic content from power automate to be a bug  
    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube:
    Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard