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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / I need to store string...
Power Automate
Answered

I need to store string value in sharepoint list and update it after every approval

(0) ShareShare
ReportReport
Posted on by 102

I have a problem with gathering comments into my SharePoint list. 

 

So I have field "comments" into my SharePoint list which stores "Responses Comments" from approve action. When the second level of approve start and also has some comments it just replace the first ones. I tried to fix it with "concat()" function but it seems to not work properly. I have created variable string "comment" which value is my "comment string". Then after "Update item" action I try to use concat function to the field I want to store my strings:

 

concat(variables('comment'),'\n', items('For_each_2')?['comments']).
 
How am I suppose to make it work?
Categories:
I have the same question (0)
  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Biskopt ,

     

    What is type of comments column? If it is text type, I'm afraid text type column doesn't support '\n'.

    Please try use decodeUriComponent('%0A').

    concat(variables('comment'),decodeUriComponent('%0A'), items('For_each_2')?['comments'])

    If above method doesn't work, please show some screenshots about your flow and testing outputs.

     

    Best regards,

    Rimmon

  • Verified answer
    David- Profile Picture
    1,254 on at

    Is your comments field multiple lines of text? If so, initialize a string variable and populate it with your first-level approval comments. Then when you recieve the comments from the second-level approval, use the Append to string variable action to add these comments to the first-level comments. Use the variable to update your list.

  • Biskopt Profile Picture
    102 on at

    Problem solved. I had some mistakes with my variables and setting them. Append seems just works fine. Now I will transfer my solution to the dynamic verision. Static (1 approver per level) works fine.

    Thanks for help!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 550

#2
Valantis Profile Picture

Valantis 390

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard