user criteria based on city
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2025 01:30 AM
Hi,
im trying to create a user criteria based on the users city, i created this script but the catalog item doesnt show up for users with this city:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2025 02:11 AM
Your script logic is generally correct, but the comparison is case-sensitive. If it's stored as 'katowice' or 'KATOWICE', it will fail.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2025 05:20 AM
@jean-pauldehaas Your script seems okay, did you check if the city field for the users you are testing with is having Katowice value. The script will return false if the city field is not populated on the user record or if the city name is different.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2025 05:29 AM
hi i fixed it already the user_id was the issue