> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# StringObjectDictionary

> A StringObjectDictionary is a collection of key-value pairs. The key is a string and the value can be an integer, float, string, boolean or datetime.

A StringObjectDictionary is a collection of key-value pairs. The key is a string and the value can be an integer, float, string, boolean or datetime.

## Constructors

### StringObjectDictionary()

```crmscript theme={null}
StringObjectDictionary
```

Initializes a new instance of the StringObjectDictionary class.

## Methods

## getInteger(String)

Returns Integer value for key

```crmscript theme={null}
Integer getInteger(String key)
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The value for the given key.

**Example:**

```crmscript theme={null}
StringObjectDictionary dict;
printLine(dict.getInteger("foobar").toString());
```

## getFloat(String)

Returns Float value for key

```crmscript theme={null}
Float getFloat(String key)
```

**Returns:** [CRMScript.Global.Float](CRMScript.Global.Float) - The value for the given key.

**Example:**

```crmscript theme={null}
StringObjectDictionary dict;
printLine(dict.getFloat("foobar").toString(2));
```

## getString(String)

Returns String value for key

```crmscript theme={null}
String getFloat(String key)
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The value for the given key.

**Example:**

```crmscript theme={null}
StringObjectDictionary dict;
printLine(dict.getString("foobar"));
```

## getBool(String)

Returns boolean value for key

```crmscript theme={null}
Bool getBool(String key)
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - The value for the given key.

**Example:**

```crmscript theme={null}
StringObjectDictionary dict;
printLine(dict.getBool("foobar").toString());
```

## getDateTime(String)

Returns value for key

```crmscript theme={null}
DateTime getDateTime(String key)
```

**Returns:** [CRMScript.Global.DateTime](CRMScript.Global.DateTime) - The value for the given key.

**Example:**

```crmscript theme={null}
StringObjectDictionary dict;
printLine(dict.getDateTime("foobar").toString());
```

## insertInteger(String,Integer)

Inserts or updates value for given key

```crmscript theme={null}
Void insertInteger(String key,Integer value)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
StringObjectDictionary dict;
dict.insertInteger("foobar", 200);
```

## insertString(String,String)

Inserts or updates value for given key

```crmscript theme={null}
Void insertString(String key,String value)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
StringObjectDictionary dict;
dict.insertString("foo", "bar");
```

## insertFloat(String,Float)

Inserts or updates value for given key

```crmscript theme={null}
Void insertFloat(String key,Float value)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
StringObjectDictionary dict;
dict.insertFloat("foo", 2.0);
```

## insertBool(String,Bool)

Inserts or updates value for given key

```crmscript theme={null}
Void insertBool(String key,Bool value)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
StringObjectDictionary dict;
dict.insertBool("foo", false);
```

## insertDateTime(String,DateTime)

Inserts or updates value for given key

```crmscript theme={null}
Void insertDateTime(String key,DateTime value)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
StringObjectDictionary dict;
dict.insertDateTime("foo", getCurrentDateTime());
```


## Related topics

- [SuperOffice.WebApi.Data.StringObjectDictionary](/en/api/reference/webapi/SuperOffice.WebApi.Data.StringObjectDictionary.md)
- [Namespace CRMScript.Native](/en/automation/crmscript/reference/CRMScript.Native.md)
- [SuperOffice.WebApi.Data.Webhook](/en/api/reference/webapi/SuperOffice.WebApi.Data.Webhook.md)
- [SuperOffice.WebApi.Data.RagResult](/en/api/reference/webapi/SuperOffice.WebApi.Data.RagResult.md)
- [SuperOffice.WebApi.Data.Webhook SignalEventRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Webhook_SignalEventRequest.md)
- [NSWebhook](/en/automation/crmscript/reference/CRMScript.NetServer.NSWebhook.md)
