# Class GlobalParameterEntity OptimaJet.Workflow.Core.Entities.GlobalParameterEntity Represents the persisted data for a global parameter. Namespace: [OptimaJet.Workflow.Core.Entities](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/) ```csharp public class GlobalParameterEntity : IEntity ``` ## Type Hierarchy - GlobalParameterEntity Current type - Implemented interfaces - [IEntity](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/IEntity/) ## Properties `public Guid Id { get; set; }` Gets or sets the unique identifier of the global parameter record. `public string Type { get; set; }` Gets or sets the logical type used to group the global parameter. `public string Name { get; set; }` Gets or sets the name that identifies the global parameter within its logical type and tenant scope. `public string Value { get; set; }` Gets or sets the serialized value of the global parameter. `public string TenantId { get; set; }` Gets or sets the tenant identifier for the global parameter, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) for a shared global parameter. ## Methods `public object GetValue(string key)` Gets the value of the property identified by `key`. ### Parameters | Name | Type | Description | | --- | --- | --- | | `key` | `String` | The name of [GlobalParameterEntity.Id](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/GlobalParameterEntity/), [GlobalParameterEntity.Type](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/GlobalParameterEntity/), [GlobalParameterEntity.Name](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/GlobalParameterEntity/), [GlobalParameterEntity.Value](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/GlobalParameterEntity/), or [GlobalParameterEntity.TenantId](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/GlobalParameterEntity/). | ### Returns | Type | Description | | --- | --- | | `Object` | The value of the property selected by `key`. | ### Exceptions | Type | Description | | --- | --- | | `ColumnNotExistsException` | `key` does not match the name of a supported property. | `public void SetValue(string key, object value)` Sets the value of the property identified by `key`. ### Parameters | Name | Type | Description | | --- | --- | --- | | `key` | `String` | The name of [GlobalParameterEntity.Id](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/GlobalParameterEntity/), [GlobalParameterEntity.Type](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/GlobalParameterEntity/), [GlobalParameterEntity.Name](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/GlobalParameterEntity/), [GlobalParameterEntity.Value](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/GlobalParameterEntity/), or [GlobalParameterEntity.TenantId](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/GlobalParameterEntity/). | | `value` | `Object` | The value to assign. A value for [GlobalParameterEntity.Id](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/GlobalParameterEntity/) must be a [Guid](https://learn.microsoft.com/dotnet/api/system.guid); a value that is not a [string](https://learn.microsoft.com/dotnet/api/system.string) for any other supported property is assigned as [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null). | ### Exceptions | Type | Description | | --- | --- | | `ColumnNotExistsException` | `key` does not match the name of a supported property. | | `InvalidCastException` | `key` identifies [GlobalParameterEntity.Id](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/GlobalParameterEntity/) and `value` is not [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) and is not a [Guid](https://learn.microsoft.com/dotnet/api/system.guid). | | `NullReferenceException` | `key` identifies [GlobalParameterEntity.Id](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/GlobalParameterEntity/) and `value` is [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null). | [Previous ApprovalHistoryEntity](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/ApprovalHistoryEntity/) [Next IEntity](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/IEntity/)