Replies: 4 comments
-
Hey @byebb, |
Beta Was this translation helpful? Give feedback.
-
That is exactly my issue. I know the JSON is not valid, but that is exactly my issue. I don't know how to solve this and would rather expect that the Longformfield would deal with itself. I'd love to create a custom variable based on that field to replace all line breaks with another character, but I just can't get into the variable.. since the payload field of the Zapier automation does not allow me to manipulate the variable before I create the JSON payload via Javascript. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, I cannot open this: Can you put the relevant information you are referring to here? |
Beta Was this translation helpful? Give feedback.
-
You can use a combination of a few different steps e.g. JS scripting block (to format the JSON however its needed for Zapier to accept.) + backend log (can view whatever you are outputting that has been created via the js scripting step) If you are simply applying Zapier with string on its own, its likely not going to accept it. Going to convert this to a discussion as it isn't a bug. |
Beta Was this translation helpful? Give feedback.
-
Hosting
Bug Description
If I submit a text that contains line breaks such as
"""
My awesome
comment to submit
"""
and forward it to an automation the uses a Zapier webhook, then the json payload of my Longformfield for the comment is invalid, as JSON does not allow linebreaks inside the value strings.
I tried to find a solution to create temporary values cleaning up the string, but I think it would be good to find some way to submit the text including these line breaks.
What would be the way to go?
I want it to have it in a google docs sheet in the end.
Screenshots
![image](https://private-user-images.githubusercontent.com/4288893/338976356-7a67576f-1850-4e77-9421-38824ba2da97.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAzMjQ0MjIsIm5iZiI6MTcyMDMyNDEyMiwicGF0aCI6Ii80Mjg4ODkzLzMzODk3NjM1Ni03YTY3NTc2Zi0xODUwLTRlNzctOTQyMS0zODgyNGJhMmRhOTcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDdUMDM0ODQyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjU2ZWY0MWJiZTkxZjg5ODBhYmUzNjA5NTBhOGEzY2M5NDIwOGE2Y2Q4ZWM4NWMyMGEzNTk4M2ZiMjRlYzI5NSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.gUnP4l3HgmVRaZDSghd2Ju8wBU9MYad1tSXynh0Vr-A)
Desktop:
The issue should be quite clear. I wonder what the best solution is
Beta Was this translation helpful? Give feedback.
All reactions