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
- 63.7K Get Help
- 406 Global Discussions
- 218 Industry Talk
- 456 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 297 Events
- 37 Webinars
- 7.3K Forum Archives