Answered

Missing answer ID and ref sometimes

  • 23 August 2023
  • 4 replies
  • 36 views

Badge

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:
 

 

icon

Best answer by mathio 28 August 2023, 09:37

View original

4 replies

Userlevel 7
Badge +5

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

Userlevel 7
Badge +5

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?

Badge

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?

Userlevel 7
Badge +5

About one month ago:

 

Reply