Walk-up Experience auto-populates location in online check-in

chadlockwood
Kilo Sage

 

London Patch 6

When I navigate to /sp?id=walkup_online_checkin I expect to see an empty dropdown for selecting the location, however, the URL automatically updates and adds the location_id

/sp?id=walkup_online_checkin&location_id=d6eb33b3db366b00ded2d0b2ca9619cd

If I disable all locations, the dropdown is empty, as expected. If I enable one location, the dropdown defaults to that location. If I enable all locations, the dropdown defaults to a different location and sticks with that location as if it is cached somewhere.

This does not happen in my dev instance, which is Madrid.

I do not see a setting for a default location in any of the configurations and I do not see in the widget code, anything that would set a default location. I also haven't been able to find a user preference that might be setting it to a default.

UPDATE:

I created a new location for testing and now realize that the walkup_online_checkin page is defaulting to the newest created location. The location that it was defaulting to before was the newest.

1 ACCEPTED SOLUTION

User658787
Mega Guru

If you have a location assigned to your user profile, and a location assigned to the walk-up lounges (location, but using location twice in this sentence is confusing) you have created, the system will default the user to the closest lounge to the location assigned to their profile.  If all of your walk-up lounges are in the same place then your default will be whatever is found first by the system. In your dev instance the admin account profile does not have a location assigned to it by default so you are always prompted to choose a lounge/location.

 

View solution in original post

5 REPLIES 5

greg_faber
ServiceNow Employee
ServiceNow Employee

The selection of queue that is physically nearest to the user is calculated based on latitute/longitude co-ordinates. So in sys_user table, user has a location assigned and location(cmn_location) table has those co-ordinates defined. The logic for how walk-up application is fetching the nearest location can be found in sp_widget_f84cfc133b7303001d132c2b54efc476.

 

There is a function in the server script called getClosestWalkUpLocation() that is invoked to get the location that is closest to the user. If no lat/long co-ordinates are found on sys_user record, the user will need to select the location manually from the dropdown.