Function addToCustomUserAttributeArray

  • Adds a string to a custom attribute string array, or creates that array if one doesn't exist.

    Parameters

    • key: string

      The identifier of the custom attribute. Limited to 255 characters in length, cannot begin with a $, and can only contain alphanumeric characters and punctuation.

    • value: null | string

      The string to be added to the array. Strings are limited to 255 characters in length, cannot begin with a $, and can only contain alphanumeric characters and punctuation.

    Returns Promise<boolean | undefined>

    Resolves to a boolean that indicates whether the update was successfully enqueued. Resolves to undefined if the SDK is not initialized.