---
title: "The AddCustomValues method"
slug: "the-addcustomvalues-method"
abstract: "Overview of the AddCustomValues method and properties."
---
# The AddCustomValues method

To set custom fields on an event, use the `AddCustomValues()` method.

| Property | Details |
| --- | --- |
| UT SDK methods | `AddCustomValues(string, string)`<br><br>`AddCustomValues(IDictionary<string, string>)` |
| Required/optional | Optional |
| Multiple invocations | Multiple invocations accumulate values in invocation order |
| Value validation | Must contain at least one symbol besides whitespace characters<br><br>Field names cannot be null or empty |