Solved

API Command to Refresh Segment

  • 27 October 2023
  • 2 replies
  • 43 views

Userlevel 1
Badge +2

I created a segment that pulls a list of all users who do not have a specific custom property set in their profile, and then I programmatically update their properties from our database, including specifically setting that missing custom property.

However, when I then run the list again, those same profiles are still on the list.  I expected them to drop off of the list because I had set that custom property.

How do I refresh the segment so those profiles drop off and I can retrieve a new batch to process?

icon

Best answer by stephen.trumble 30 October 2023, 11:02

View original

2 replies

Userlevel 7
Badge +60

Hey @rlscsi 

Thank you for asking the community for help with this!

Quick question, have you check the actual profiles to make sure that the custom property has been added correctly? Segments update automatically based on real time data, so you shouldn’t need to “refresh” it. Or am I completely miss understanding the question?

Userlevel 1
Badge +2

We modified our script to use the “next” link to allow for the delay in refresh. Thank you for responding!

Reply