Welcome to the community. From your list of 3 the first 2 are incorrect because you are escaping the initial string. The third one looks correct to me but are you sure:
status is the columnId (not the column name
“Sign-Up” is an existing label for that status column
Anyhow the correct syntax is found at Status and should read:
I would recommend avoiding escaping manually, where possible. This can be error-prone and an unsustainable solution in the long-run. Using functions that do that work for you can save you a ton of time 🙂
I hope this helps! Thank you so much for your input too, @basdebruin! You’re always really helpful.
As for the first part, the function to call the API requires a string, which is why my first two options have quotes. I merely forgot to copy them for the third one. Is that what you meant by “escaping the initial string”? Sorry for the confusion.
I had checked those three links, but the StackOverflow one was promising… sadly it didn’t help.
I’m assuming I did something wrong, but I’m not sure what. I based myself on the API Quickstart Guide in Javascript, substituting stringify with its equivalent, but it returns the same Internal Server Error error.
To add some more information, I used this to make the function calling the API :
Escaping quotes basically means structuring your strings such that strings-inside-strings can be parsed accurately. It means putting a backslash \\ escape character in front of inner quotes, to identify that those particular character should be parsed as a literal " and not the beginning or end of a string.
You’re doing that fine when making the queries that don’t use column values:
However, when you use the column values argument, there are strings inside strings, which are themselves inside a string. We need to escape these twice.
With this example, the full string is surrounded by the " character, the first level inner string is surrounded by \\", the second level is surrounded by \\\\\\" and the third level is surrounded by \\\\\\\\\\".
If you use a JSON library in your code, you should be able to rely on a serializer to properly escape the inner quotes instead of having to worry about counting sets of five backslashes 🙂
Let me know if the above explanation makes sense, and if the code works for you!
Cheers, Dipro 🔮
Take a look here. This worked for me:
hi! I tried this one, but still I got internal server error.
Hey @candyOrate – can you open a new topic in the community about this? Please include a code snippet of the HTTP request you’re making, and the error response.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.