Have you tried "\" two backslashes as that is often translated the other way to a single as its a special character
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.
2 answers
Sort by: Most helpful
-
-
Kamlesh Kumar 3,861 Reputation points
2022-07-15T06:45:57.917+00:00 Hi @Bharvi Bhut ,
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 TechiePlease don't forget to click on or upvote 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