OutSystems Service Studio 4.1 Help
About Site Properties
In Service Studio, a site property is a variable instantiated before the deployment of the tenant site. The site properties can be pre-defined or user-defined as explained below.
Usually site properties are used to manage constant values
or values with small mutability.
Pre-defined Site Properties
The pre-defined site properties, created and handled automatically by OutSystems Platform, are the following:
TenantId: contains the identifier of the current Tenant; this identifier is generated internally by OutSystems Platform.
Read-only.
TenantName: contains the name of the current Tenant; this name is used by OutSystems Service Center to identify the tenant.
Read-only.
To create a site property, simply right-click
on the folder Site Properties,
in the eSpace tree, and select the
Add
Site Property option.
When the tenant is deployed, the site properties that you create have the default value specified, if any.
Internally, Site Properties are stored in the cache of each Hub Node. Although this is an implementation detail, you must be aware of it due to the fact that whenever the cache is removed, all the site properties are also re-initialized.
|
How to effectively change the value of a Site Property: |
|
After changing its value, you must invoke the built-in TenantInvalidateCache function. |
See Also