cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
zeedee11
Advocate I
Advocate I

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

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,798)