cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
User090221
New Member

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

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
User090221
New Member

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

View solution in original post

4 REPLIES 4
Paulie78
Super User
Super User

Try something like:

replace(outputs('yourCompose'), decodeUriComponent('%0A'), '' )

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

 

User090221_0-1612953952951.png

 

Paulie78
Super User
Super User

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

User090221
New Member

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

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,877)