question

BharviBhut-3022 avatar image
0 Votes"
BharviBhut-3022 asked KamleshKumar answered

In Logic apps how to pass a single backslash (\) as string in another action?

Hello there,

  • I am making an logic app which has one http request action.

  • Inside that http body I want to pass a variable which has a string with backslash

  • But when I tried every single backslash was transformed into two backslash

  • Can anyone has a solution for this?

Here I have attached an image of what I am passing in string VS. what the second action take that string as.
220588-screenshot-2022-07-14-095900.png



azure-logic-appsmicrosoft-sentinel
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

clivewatson-9831 avatar image
0 Votes"
clivewatson-9831 answered

Have you tried "\\" two backslashes as that is often translated the other way to a single as its a special character

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KamleshKumar avatar image
0 Votes"
KamleshKumar answered

Hi @BharviBhut-3022 ,

Welcome to Microsoft Q&A Platform. Thank you for the question.

When edited in design view, logic apps adds a backslash to the original backslash to cancel it out. If you go to Code view you can remove it manually.

From:

 "inputs": "This is Test Data \\n And this is new line 1 \\n New line 2"

To:

 "inputs": "This is Test Data \n And this is new line 1 \n New line 2"

Regards,
Kamlesh Kumar
BizTalk Techie


Please don't forget to click on 205836-130616-image.png or upvote 205759-130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is How

Want a reminder to come back and check responses? Here is how to subscribe to a Notification

If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators






5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.