Linebreaks being stripped from API request.
Status: Open · Asked by Anders Nielsen on · 0 views
Hi,
Please check this video. I have an issue with the text not being sent with linebreak. Pabbly strips them away in my markdown.
How can I fix this.
I am replacing
with \n in my markdown convert sequence (Pabbly's own HTML to markdown converter is broken as previously reported).

Target app (parallel). The output is fine when I insert the markdown manually but when I sent it using Pabbly alle linebreaks are removed.

Check this flow please:
https://connect.pabbly.com/workflow/mapping/IjU3NjUwNTY1MDYzNzA0MzI1MjZjNTUzMjUxM2Ei_pc
And check step 11-18 where I convert the html to markdown and 21 when I submit the output via the API.
The target app receives the data without linebreaks so it looks bad
How can I fix this.
Looking forward to hearing back from you!
All the best
Anders
Hi @apps,
Please try adding
or \n tags to your content and see if that helps you get the data to the target application with line breaks.
Hi @ArshilAhmad , as explained in my post I replaced the
with \n already. I does not work.
And I need to send Markdown to my target app (Onparallel). It does not support HTML - so if I send
to it inside the Markdown it simply writes
in the code.
How can I fix this?
And when will you fix your broken HTML to Markdown converter?
If Pabbly's HTML to Markdown converter worked that would be great. Because then I wouldn't have to do the conversion manually using multiple text replacement steps as I do. Please check out the flow.
Hey @apps !
Kindly use "Code by Pabbly" once and check if this can work for you to add \n along with your content to the application in which you want the output correctly.
You can check on this video tutorial on how "Code by Pabbly" works-
youtube.com/watch?v=iNVjyBfwqno
Do check and let us know about it.
Hi @Subin I don't understand at all what you suggest here. I can't code javascript.
I simply want to add linebreaks and send them
Hey @apps !
Can you provide us with screenshots on how it shows on your Parallel when done manually and when done through automation?-

So we can compare it once and provide you with a workaround on this.
This is how it looks when i paste the result manually when the
have been replaced with a linebreak made using a texteditor
This is how the same looks when the same replacement have happened it Pabbly AND it is sent through Pabbly's API Action. The text is fine after the text replacement of
with a linebreak (\n) in Pabbly. It is when it is sent through your API action those linebreaks are stripped away.
It should be quite clear why this output is un-useable these linebreaks are stripped away...

P.S. Ignore the
tags etc.
Hey @apps !
Checking upon your whole workflow, we cannot see that you have used the response of step 11 in step 21 to pass the correct data to your Parellel applications-


Do use the response from 11th step in 21st step and check if you are getting the correct structure or not.