Quotes within a formula for API PUT/POST
How is the data supposed to be formatted when a formula has quotes within it such as =IF(X=1,"One,"") ? I am getting just slashes in place of the quotes when I export a formula using the API, but when I use the same syntax to add/update a column with a formula it doesn't parse correctly. I tried /" and double-quotes. Nothing seems to be working. Any ideas?
Answers
-
It will depend on what you are using to generate the request body but in general a backslash is the escape character for json not forward slash so \" may work for you.
-
I may have mistyped. This is what is imported: =IF(ColLocked@row = 1, \One\, \\) so when I am doing the update, I am using the exact same string and it doesn't seem to work like that or \". Any ideas?
-
Based on what you've written I would expect the correct format to be =IF(X=1,\"One\",\"\") but it's hard to say without seeing the whole request that you're trying to submit.
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives