Developer forum

Forum » Dynamicweb 10 » Segment Search not returning correct Users

Segment Search not returning correct Users

Jens Balmert Dynamicweb Employee
Jens Balmert
Reply

Hello everyone,

In my DynamicWeb instance I've created over 10 German-based users and over 10 Swiss-based users. However, when I create segment searches with 'Country Equals Germany' I only get a few of my German-based users and when I go 'Country Equals Switzerland' also one German user is getting fetched. I already rebuilt the user repository, but it didn't help.


Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

A user has two separate fields related to country and you can configure your segment search to look at either of them.

Segment search: "Country"
This is just some text provided by the user or editor.
This maps to the value of the User.Country property and it is stored in [AccessUser].[AccessUserCountry] in the database.
This is labled "Country name" in the user list screen (click on "Manage columns" in the "Actions" menu to make it visible on the list).

Segment search: "Billing / Shipping country"
This maps to an ISO country code and this is the one that is used by the system to resolve the user country (e.g. during checkout).
This is the value of the User.CountryCode property and it is stored in [AccessUser].[AccessUserCountryCode] in the database.
This is labled "Country" in the user list screen (click on "Manage columns" in the "Actions" menu to make it visible on the list).

Try to change your segment search to use "Billing / Shipping country" and see if that gives you the expected results.
Otherwise, if you really do want to to use the "Country" text field then make sure that each user has the exact value you are looking for, e.g. "Switzerland" (without any spaces, invisible line breaks, etc.).

/Morten

 
Jens Balmert Dynamicweb Employee
Jens Balmert
Reply

Hi Morten,
Indeed it works fine now, where I added a billing / shipping address with a country.

Thank you very much,
Jens

 

You must be logged in to post in the forum