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 / Separating Attachment ...
Power Automate
Suggested Answer

Separating Attachment File Names

(1) ShareShare
ReportReport
Posted on by 169
In my flow, I update a SharePoint List column with the names of the attachments from a form.  The column is Text, Multi-Line.
 
What is the best way to separate them, preferably with a CR so the next attachment name is on the next line.
Categories:
I have the same question (0)
  • Suggested answer
    Pstork1 Profile Picture
    69,556 Most Valuable Professional on at
    Use Concatenate(filename, uriComponentToString('%0D'), uriComponentToString('%0A')) to create a string that ends in a carriage return and linefeed.  Then Append that to a String Variable. Then you can use the string variable as input for the multiline field.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • Suggested answer
    11manish Profile Picture
    3,333 on at
    you can also try below :
    • join(variables('AttachmentNames'), decodeUriComponent('%0D%0A'))
  • Suggested answer
    Valantis Profile Picture
    6,735 on at
     
    Use a join expression with a newline character to combine the names.
     
    If you have an array of attachment names, use this expression in a Compose or Set Variable action:
     
    join(body('Your_Trigger_or_Action')?['attachments'], decodeUriComponent('%0A'))
    The decodeUriComponent('%0A') produces a line feed character which SharePoint multi-line text fields render as a new line.
    If you are building the list inside an Apply to each loop, initialize a string variable before the loop and append to it each iteration:
     
    Append to string variable:
    variables('FileNames') + item()?['name'] + decodeUriComponent('%0A')
    Then use the variable in your SharePoint Update item action.
    If you need a true carriage return + line feed (CRLF) instead of just LF, use decodeUriComponent('%0D%0A') instead.
     

     

    Best regards,

    Valantis

     

    ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.

    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).

    🏷️ For follow-ups  @Valantis.

    📝 https://valantisond365.com/

     

  • Valantis Profile Picture
    6,735 on at

    Hi @billf24,

    Just wanted to check in and see if everything is working now. If you still need any help, feel free to let me know.

    Also, if the issue is resolved, it would be great if you could mark the answer as solved so others with the same question can find it easily.

     

    Thanks and have a great day!

     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard