cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
zeedee11
Frequent Visitor

Flow automatically adding extra backslash inside my string

I'm setting a string variable based on multiple inputs using concat(). I need to add \n at different points to this string. The output of the string variable seems ok.

 

1.png

 

When I pass this string inside as a HTTP POST to a different application, Flow adds another backslash. How do I prevent this extra backslash?

 

2.png

1 ACCEPTED SOLUTION

Accepted Solutions

Thanks for the suggestion. But <br> isn't going to work in my case.

I was able to figure it out anyway. Instead of doing all the fancy concat() stuff and manually adding the \n, I inserted my multiple inputs line by line as needed inside of my string variable like this:

3.png

Now when it inserts the variable inside the HTTP POST JSON, it automatically adds the \n for me. Success.

4.png

View solution in original post

2 REPLIES 2
v-litu-msft
Community Support
Community Support

Hi @zeedee11,

 

Is the string is a part of HTML content?

If it is, instead of insert "\n", you could insert <br> into the string.

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for the suggestion. But <br> isn't going to work in my case.

I was able to figure it out anyway. Instead of doing all the fancy concat() stuff and manually adding the \n, I inserted my multiple inputs line by line as needed inside of my string variable like this:

3.png

Now when it inserts the variable inside the HTTP POST JSON, it automatically adds the \n for me. Success.

4.png

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!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,322)