0

I have a logic app that sends data to another logic app.

enter image description here

the data sent will always have \n\n at the end.

how do i clean it. i've tried using the replace function but it doesnt work.

replace(triggerBody()?['command'],'\n','')

1 Answer 1

0

this works Using the following expression cleans the string recieved from the HTTP post request above.

to reference \n the decodeUriComponent function is used where \n is represented as %0A

replace(triggerBody()?['command'], decodeUriComponent('%0A'), '')
Sign up to request clarification or add additional context in comments.

1 Comment

Thank you for contributing to the Stack Overflow community. This may be a correct answer, but it’d be really useful to provide additional explanation of your code so developers can understand your reasoning. This is especially useful for new developers who aren’t as familiar with the syntax or struggling to understand the concepts. Would you kindly edit your answer to include additional details for the benefit of the community?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.