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 do I remove line b...
Power Automate
Unanswered

How do I remove line breaks from "Get Job Output" from Azure Runbook

(0) ShareShare
ReportReport
Posted on by 11

Hi,

 

I'm trying to create a flow to remove German Umlauts and Special Characters from a String. To achieve this, I created an Azure Runbook which works fine but when I use the module "Get job output" my Output always has two line breaks (see screenshot). When I run the PowerShell Script locally or look at the direct Output in Azure the line breaks are not there. Is there anyway I can prevent this?

 

User090221_0-1612877509316.png

 

Categories:
I have the same question (0)
  • Paulie78 Profile Picture
    8,422 Moderator on at

    Try something like:

    replace(outputs('yourCompose'), decodeUriComponent('%0A'), '' )
  • User090221 Profile Picture
    11 on at

    Thanks for the tip, but sadly it didn't work in my case.

     

    User090221_0-1612953952951.png

     

  • Paulie78 Profile Picture
    8,422 Moderator on at

    Maybe you have a CRLF there (or something else). Can you click on "Show raw inputs" and see what it shows you?

  • Verified answer
    User090221 Profile Picture
    11 on at

    Hello Paulie,

     

    Thanks for your help!

    I did contact the Microsoft Support, and we solved it together.

     

    Before you can use the Output you have to parse it through a JSON file like this:

     

    User090221_0-1613377488093.png

     

    The Output from the Parse JSON is then without any line breaks. Also in my Azure Runbook I had to add a "ConvertTo-Json" to my output.

     

    Regards,

    User090221

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard