Share feedback, ideas and get community help

Updated last month

Save in variables doesn't like hyphens?

Trying to save a value returned from an http request to a variable. Sample request response:

{
"statusCode": 200,
"data": {
"vid": 12345677890,
"canonical-vid": 234567,
"portal-id": 123456,
"is-contact": true,
"properties": {
"owner_zoom_meeting_id": {
"value": "12345"}
}

I can save data.vid to a variable, and data.properties.owner_zoom_meeting_id.value to a variable. However, I can't save data.canonical-vid, or data.['canonical-vid']. The value doesn't get written. Is there a way to format the data section of the Save in variables to handle the hyphenated name?
d
s
B
5 comments
@stykujason as far as I know json key doesn't allow - hiphnes
Thanks for responding. The response is coming from the server formatted as you see in my example. There are hyphens in the response. Other services (like zapier) are able to read and store these variables. Typebot doesn't, and I feel like it's because of a syntax error I don't understand.
If you look at the attached picture, you'll see what I'm trying to do. This does not set the variable. But I can set the variable if I put data.vid into the Data field. So the function works, it's just not working with these hyphenated properties. Typebot bug? Syntax wrong?
Attachment
Screenshot_2024-10-30_at_8.57.38_AM.png
This is solved, the correct syntax is data["canonical-vid"]. Typebot HTTP block Set variable UI auto-fills with: data.['canonical-vid'] which does not work.
Attachment
Screenshot_2024-10-30_at_11.52.13_AM.png
This must be reported to @Baptiste
Thanks for the report! This is indeed a bug
Add a reply
Sign up and join the conversation on Discord