Missing answer ID and ref sometimes | Community
Skip to main content
Answered

Missing answer ID and ref sometimes


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
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14950 replies
  • August 24, 2023

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


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • 888 replies
  • August 24, 2023

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
mathio wrote:

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
  • 888 replies
  • Answer
  • August 28, 2023

Reply