Skip to main content
Solved

Retrieve Profiles Where Consent Details Have Changed In Past n Days

  • April 29, 2023
  • 3 replies
  • 100 views

Forum|alt.badge.img+2
  • Contributor I
  • 1 reply

Hello,

I am currently developing a program that aims to synchronize our customer database with Klaviyo's, primarily focusing on syncing sms/email consent settings.

 

The synchronization from our database to Klaviyo has been successfully implemented, however, I am encountering difficulties when setting up the synchronization from Klaviyo back to our database. The main obstacle is retrieving the appropriate customers that we need to update.

 

I have attempted to use filters to retrieve profiles where the consent data was changed specifically within the past day. However, it seems the consent_timestamp is not available for JSON:API filtering.

 

So far, I have managed to filter profiles that have been updated in the past day. The downside of this approach is that it results in over 20,000 customers, of which I am sure only a small percentage actually need synchronization.

 

Does anyone have any insights or experience in generating a list of this nature? Any help would be greatly appreciated.

 

Thank you,

Dylan

Best answer by Brian Turcotte

Hi @fen!

 

At this time, it’s not possible to filter by the time/date at which a specific profile property was updated - but I will forward this to our Product Team to see if they have any plans of making this available in the future.

 

I hope this helps to clarify!

- Brian

3 replies

Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • May 1, 2023

Hi @fen!

 

I’m going to check with Engineering to see if they have any advice on how to tackle this - but just to clarify, do you essentially want to retrieve a list of profiles that have had their consent property changed within a certain timeframe?

I’ll update the thread when I learn more!

 

Best,

Brian


Forum|alt.badge.img+2
  • Author
  • Contributor I
  • 1 reply
  • May 1, 2023

Hey @Brian Turcotte, that’s correct! I’d like to be able to query when the consent property (for sms & email messaging) changes so I can see who has changed their settings in the past <time-frame>. That way I can keep our consent settings per customer in parity with Klaviyo’s. :-)

 

Looking forward to hearing back.

 

Dylan


Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • Answer
  • May 4, 2023

Hi @fen!

 

At this time, it’s not possible to filter by the time/date at which a specific profile property was updated - but I will forward this to our Product Team to see if they have any plans of making this available in the future.

 

I hope this helps to clarify!

- Brian