Skip to main content
Solved

Basic API question - passing variable

  • April 19, 2024
  • 1 reply
  • 42 views

Forum|alt.badge.img+2
  • Contributor II
  • 3 replies

Can someone please help, I am stuck. It may be something very basic as I am new to all this

So looking at this example:

?filter=and(equals(first_name,"Jane"),equals(email,"jane@klaviyo-demo.com"))

So instead of “Jane” and "jane@klaviyo-demo.com", I want to pass on a Variable, so how do I do that - syntax wise.

My goal is to to search profiles and get the profile based on email and name. 

Thanks,

Shaz

Best answer by Brian Turcotte

Hi @Shaz!

Would you be able to provide a little more information about the context for this use case? For example - where are you creating this variable? In your system, in Klaviyo, or somewhere else? Where (or what platform) are you trying to search in?

Best,
Brian

1 reply

Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • Answer
  • April 24, 2024

Hi @Shaz!

Would you be able to provide a little more information about the context for this use case? For example - where are you creating this variable? In your system, in Klaviyo, or somewhere else? Where (or what platform) are you trying to search in?

Best,
Brian