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 / Remove line breaks in ...
Power Automate
Answered

Remove line breaks in Variables from SQL Database in Desktop Flow

(0) ShareShare
ReportReport
Posted on by 4

Hello all,

I am currently having the problem that when I create variables out of my MySQL database they have line breaks later in the desktop flow. The line break is only visible in the input details of the desktop flow activity.
This does not allow me to determine the distinguished name in AD.
Does anyone have a fix or workaround for this problem?

 

chrome_aVues9sh1f.png

 

Many greetings



  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    If you want to fix this in the desktop flow, try using Replace text with regular expressions enabled and replace \r\n with %""% (indicates that it will replace it with nothing - an empty string). 

    -------------------------------------------------------------------------
    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.

  • Cloudadm Profile Picture
    4 on at

    Unfortunately, no.
    \r\n is not replaced. Can you possibly send a screenshot of exactly how you filled in the "Replace text"?

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

    Make sure that you enable regular expressions: 

    Agnius_0-1694524991665.png

    -------------------------------------------------------------------------
    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.

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 424

#2
11manish Profile Picture

11manish 328 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard