Skip to main content
Answered

Missing answer ID and ref sometimes

  • Aug 23, 2023 8:55 PM UTC
  • 4 replies
  • 100 views

Forum|alt.badge.img

Looking through our data, sometimes the ID and ref is missing in the JSON we get on our webhook

For example, sometimes we get this and that’s great, we can be sure we know what choice the user made:
 

{
"type": "choice",
"choice": {
"id": "IDdY2lg65F2v",
"label": "I'll give it a try",
"ref": "267c4942-acf9-498e-8fc0-8956f256d98e"
},
"field": {
"id": "zsikICfrHob3",
"type": "multiple_choice",
"ref": "598eb33b-3ce0-4a6f-94ed-7ed5bad1264b"
}
},

But then sometimes the ID is missing and I have to do string matching on the label, which is not great.

{
"type": "choice",
"choice": {
"label": "I'll give it a try"
},
"field": {
"id": "zsikICfrHob3",
"type": "multiple_choice",
"ref": "598eb33b-3ce0-4a6f-94ed-7ed5bad1264b"
}
},


This seems to be a problem others have reported:
 

 

Best answer by mathio-tf

About one month ago:

 

View original

4 replies

Liz
Ex–Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • Aug 24, 2023 2:01 PM UTC

Tagging @mathio in case they happen to have any idea on this!


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • Aug 24, 2023 2:10 PM UTC

Hello, you should receive both id and ref, it was recently added to the webhook payload. In past it was not available. Are you still receiving payloads without those values?


Forum|alt.badge.img

Hello, you should receive both id and ref, it was recently added to the webhook payload. In past it was not available. Are you still receiving payloads without those values?

Oh interesting.  How recently, @mathio?


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • Answer
  • Aug 28, 2023 7:37 AM UTC

About one month ago: