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 / about the unexpected l...
Power Automate
Answered

about the unexpected last blank line

(0) ShareShare
ReportReport
Posted on by 14

why there is always an unexpected blank row added to the clipboard as the last line after action 'set clipboard text' to a list that contains several items? 

 

will any skillful people contribute a solution to this?

 

 

 

I have the same question (0)
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Might be because it is a list, and list items are delimited by newlines. If you want to avoid it, I would suggest using Join text on the list to join it into a string variable. Then, if needed, you can also use Trim text on it, to remove any unwanted newlines and whitespaces at the end of the string.

     

    Then again, there might be a better way to do whatever you're doing than using the clipboard. If you only described what you are trying to accomplish, we might be able to suggest better alternatives. There are almost always better alternatives for using the clipboard in RPA.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • mioonenote Profile Picture
    14 on at

    First of all, many thanks to your useful reply.👍

    Why I have to choose clipboard as a solution is I need to put a list that has a couple of line into a message ui element and it will be convert into one line without delimiter if I use popluate text or send key action to do that. 

    I am trying join text action as you mentioned, and how can I use key enter as the delimiter for the join text?

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Use newline as the delimiter (one of the standard delimiters) to keep each item in a new line.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Verified answer
    mioonenote Profile Picture
    14 on at

    it still has been deformed into a single line if I populate joined text into that message ui element, but it works if I get the thing back from clipboard after I set the joined text to the clipboard first.

    I also tried a single list with clipboard, there is no an additional blank last line. maybe it is a bug from microsoft?

    anyway, great thanks to 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 246 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 176

#3
Haque Profile Picture

Haque 157

Last 30 days Overall leaderboard