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
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives