Acumatica customization gurus, is it possible to reference the UserPreferences.DefaultSite field in an event? Code snippet is below, but I’m receiving the error ‘UserPreferences’ does not include a definition for ‘DefaultSite’. The field does exist in the SQL table in my local test environment. Thanks in advance!


var line = e.Row;
var currentUserID = PXAccess.GetUserID();
UserPreferences prefs = PXSelect<UserPreferences,
Where<UserPreferences.userID, Equal<Required<UserPreferences.userID>>>>
.Select(Base, currentUserID);
if (prefs?.DefaultSite != null)
{
line.SiteID = prefs.DefaultSite;
}


