Question

Klaviyo webhook lookup for "$" custom properties not working

  • 19 November 2022
  • 3 replies
  • 22 views

Badge

Hi, I’m trying to send back some custom properties via the webhooks system. It’s not capturing properties that have “$” in the front, such as “$id” and “$timezone”. It does work for our other custom properties that we store on user’s profiles.

 

For example, I want to send this json in a webhook:

{

  "userId": "{{ person|lookup:'$id'|default:'' }}",
  "timezone": "{{ person|lookup:'$timezone'|default:'' }}",

  “utmSource”: "{{ person|lookup:'firstTouchUTMSource'|default:'' }}"

}

 

The first two properties userId and timezone are blank, while utmSource is populated. So I think it’s an issue specifically with the “$id” and “$timezone” lookup fields.


3 replies

Userlevel 4
Badge +19

Hi @danatopen and welcome to the Community!

 

Would you mind sharing more about your use case so myself and other members of the Community can gather some more context? As noted in this Help Center Article, webhooks are only available in flows and can only be triggered by events, so I’m curious what event is triggering the webhook. 

 

As far as the timezone and user ID, profiles don’t always have values for these properties, depending on how they signed up and what information they provided. I would first recommend checking if the profile that fired the action has values for the properties. This can be accomplished by exporting the profile and reading the resulting profile information.

 

I hope this helps to clarify, and thanks for using the Community!

 

- Brian

Badge

Hey @Brian Turcotte 

 

Use case

We want to send a webhook event back into our system so we can show an in-app modal. For example, after they’ve completed their 5th activity, if they still haven’t enabled push notifications, then we want display a modal that details the benefits of pushes.

 

Missing properties

I checked with multiple users and they all had the $id and/or $timezone properties.

Not sure if you can look up one of our profiles, but here’s an example.

Screenshot of timezone and id in the linked profile

 

Badge

@Brian Turcotte any advice for how to deal with this? Thanks

Reply