Skip to main content
Contributor III
March 20, 2024
Solved

How to get Profile ID as a variable?

  • March 20, 2024
  • 9 replies
  • 828 views

Hello,

 

I am creating a Klaviyo flow in which an external webhook is added. In the webhook, I need to get the value of the Profile ID (or Unique ID which looks like: ‘01H93QW1DV42YDCQN*********’) and add it to the request body. How I can get the value of the Profile ID as a variable?

 

I read the official doc: https://help.klaviyo.com/hc/en-us/articles/4408802648731 that says `{{ person.id }}` can bring out the Unique ID ($id/external ID) . However, I got ‘None’ when I did it.

 

Could anyone please advise what is the correct variable I can use to bring the value of the profileID out? Thanks!

 

Junsheng 

    Best answer by saulblum

    Can you try just {{ person }} and it should show all the available properties?

    9 replies

    Klaviyo Employee
    March 20, 2024

    Try {{ person.KlaviyoID }}

    junshengAuthor
    Contributor III
    March 20, 2024

    I got empty string: ‘’ when using {{ person.KlaviyoID }}.

    saulblumAnswer
    Klaviyo Employee
    March 20, 2024

    Can you try just {{ person }} and it should show all the available properties?

    junshengAuthor
    Contributor III
    March 20, 2024

    {'KlaviyoID': '', 'id': None, 'email': 'xxx@xxx.com', 'first_name': 'xxx', 'last_name': 'xxx', 'full_name': 'xxx', 'phone_number': '', 'organization': '', 'title': '', 'ID': None, 'Email': 'xxx@xxx.com', 'FirstName': 'xxx', 'LastName': 'xxx', 'FullName': 'xxx', 'PhoneNumber': '', 'Organization': '', 'Title': '', 'ViewedItems': [], 'City': '', 'Region': '', 'Country': '', 'Zipcode': 'None', '$address1': None, '$address2': None, '$city': None, '$zip': None, '$latitude': None, '$country': None, '$region': None, '$longitude': None, 'location': {'address': '', 'city': '', 'region': '', 'country': '', 'zip': 'None'}

    junshengAuthor
    Contributor III
    March 21, 2024

    Is there any way I can get Profile ID by variable?

    Klaviyo Employee
    March 21, 2024

    Is there any way I can get Profile ID by variable?

    Hi, check your DMs, I sent a message.

    Contributor I
    September 17, 2024

    Hi, I’m facing the same issue. I cannot retrieve the Profile ID by variable. How can we do it?

    Contributor I
    January 2, 2026

    I'm facing the same issue
    Anyone could solve it?

    Byrne C
    Community Manager
    Community Manager
    January 8, 2026

    Hi all! Try using 

    {{ person|lookup:'KlaviyoID' }}

    This should work.