Skip to main content
Solved

How to use Code (Node.js) to enrich profile custom properties?

  • December 18, 2025
  • 3 replies
  • 28 views

Forum|alt.badge.img

I set up a Code, triggered by a custom event.
The idea was that when that event was triggered, a new attribute is calculated and added to the profile custom properties.
The problem is that the Code is never triggered, I set it live and I tested it and it works as expected within the test, but despite several events, I see the logs tab empty.
I also tried to use the “webhook success” trigger (with some filtering to only use the right webhook), but doesn’t work as well.

Best answer by tonydev

@whereisjad https://help.klaviyo.com/hc/en-us/articles/18620644491035

3 replies

whereisjad
Expert Problem Solver IV
Forum|alt.badge.img+16
  • Expert Problem Solver IV
  • December 18, 2025

@tonydev could you shed more light on what Code is specifically? Show us what it is and the flow it is setup to trigger or flow it is within


Forum|alt.badge.img
  • Author
  • Contributor I
  • Answer
  • December 19, 2025

whereisjad
Expert Problem Solver IV
Forum|alt.badge.img+16
  • Expert Problem Solver IV
  • December 19, 2025

@tonydev thats not what I asked for.  I know about the feature, I am asking about what you specifically set up for it