Get Current Config
The config utility is used to retrieve the config object that contains basic information about the currently logged in account. Same as getConfig
but instead of request the "latest" status from Suite frame just returning the current config state, it is no garantee about it is a same as the Suite.
The
customerId
and adminId
is not suited for authentication. For authenticating customers an Authentication Token should be used.
This utility works in iframes as well, but
window.e.config
must be present on the window.
Usage
Name | Description |
---|---|
window.e.utils.v2.config.getCurrentConfig() |
Returns an object with config data |
Returns
The config object contains the following fields:
Name | Type | Description |
---|---|---|
accountTimezone |
The timezone setting of the currently logged in customer account | |
adminFirstName |
The first name of the currently logged in admin | |
adminId |
The adminId of the currently logged in admin |
|
adminLastName |
The last name of the currently logged in admin | |
customerId |
The customerId of the currently logged in customer account |
|
dateFormat |
The preferred date format of the currently logged in admin | |
environment |
The name (domain) of the current environment | |
enviromentHost |
The name (domain) of the current UI host (e.g. when using a CDN) | |
features |
The array of enabled features for the account | |
flippers |
The array of turned on flippers for the account | |
includeScripts |
???? | |
isoLanguageCode |
Long language code | |
language |
The preferred language of the currently logged in admin | |
navigation |
???? | |
revenueAttributionCurrency |
???? | |
services |
A list of additional fields provided by various services | |
sessionId |
The public id of the current session | |
timeFormat |
The preferred time format of the currently logged in admin | |
timezone |
The timezone setting for the currently logged in admin | |
translations |
??? |