FCSession Class Members
The following tables list the members exposed by FCSession.
Public Properties
| | Name | Description | | --- | --- | --- | | | ConfigItems | Collection of CRM session configuration items. | | | ConvertTimeZone | Sets whether or not any DateTimes will be translated to and from ServerTimeZone and LocalTimeZone. Default value is false. | | | CreationTime | Timestamp when the session was created. | | | CurrentCulture | Returns the Culture being used by the session. | | | DataRestrictionsEnabled | | | | DefaultCulture | Returns the default Culture being used by the session. | | | DefaultDistinctGenerics | Sets whether or not newly created generic objects will have IsDistinct set to include all relation data fields during Queries.
| | | DisableDataConversions | Sets whether data conversions happen when GenericDataRow fields are modified. | | | IncludeRelations | Sets whether or not newly created generic objects will include all relation data fields during Queries. | | | Item | Get or set session data indexed by specified key. | | | Items | | | | LastLoadTime | Timestamp when the session was last loaded via FCApplication.GetSession | | | LocalTimeZone | The TimeZone being used by the session. | | | Log | Returns a Logger useful for logging application events or errors to the logging system. | | | LoginType | Returns the login type of the logged-in user. | | | MaximumRows | | | | PasswordRequired | Gets whether or not a password was used when CreateSession was called. | | | QueryEmptyToNull |
Sets whether or not new newly created generic objects convert filters on empty strings into filters on Queries that check Is NULL or IS NOT NULL.
| | | RestrictionGroup | Returns the data restriction group being used by the session. | | | SessionData | | | | SessionID |
Returns the session's unique identifier.
| | | SetNullStringsToEmpty | Sets whether or not newly created generic objects will convert a null reference (Nothing in Visual Basic) to empty strings. | | | TruncateStringFields | Sets whether or not newly created generic objects will truncate string fields if they are too long. | | | UserID | Returns the unique identifier for the session's logged-in user. | | | UserName | Returns the login name for the session's logged-in user. |
Public Methods
| | Name | Description | | --- | --- | --- | | | ChangePassword | Change the password for the session user. | | | ChangeRestrictionGroup | Changes the RestrictionGroup the session is currently using. The change can be made permanent. | | | CloseSession | | | | ConvertDate | Overloaded. Converts a DateTime from one TimeZone to another. | | | ConvertFromLocalToServerDate | Converts a DateTime from the session timezone to the server timezone. | | | ConvertFromServerToLocalDate | Converts a DateTime from the server timezone to the session timezone.
| | | Dispose | | | | FormatElapsedTime | Overloaded. Formats an numeric value in seconds into a string "DDD HH MMM" where: D=Days, H=Hours, M=Minutes | | | GetAssignedPermissions | | | | GetCurrentDate | Retrieves the DateTime of the CRM database. | | | GetCurrentServerDate | Retrieves the DateTime of the CRM database. | | | HasPermission | | | | RefreshContext | Refresh the session information for the logged-in user. | | | RegisterLicenseRequirements | | | | SaveSession | | | | SetPassword | Change a user's password |