Hello Zapmates!
Here’s the challenge…
We’re trying to sort content to recommend to a person using scores. I want to return the URL slugs (that present the slug) in order of the highest score for each contact_id
I’ve got a Loop in my Zap to fetch the relevant scores for each Slug line item. I’m not sure how best to push this to Storage with one key (the contact_id), multiple slug/scores.
e.g.
contact_id: abcde
Slug: example-slug-a
Score: 56
Slug: example-slug-b
Score: 85
Slug: example-slug-c
Score: 74
I’m then not sure how to get all these entries looped through for each contact (there could be 20-30) and then sort them. There’s an outline here, but it uses alphabetical sorting vs. the idea of a score.
Maybe there’s a hacky way to preprend the score value to slug name then use the same desc logic?
Any help would be really appreciated