The Contact method

Version:

To define the interaction contact, use the Contact() method.

Property

Details

UT SDK method

Contact(string, string)

Required/optional

Optional

Multiple invocations

Multiple invocations are forbidden and cause an InvalidOperationException exception

Value validation

Each value must contain at least one symbol besides whitespace characters

For example:

var interactionRequest = UTRequestBuilder.Interaction(UTEvent.GetEmptyEvent())
                                         .ChannelId("27b4e611-a73d-4a95-b20a-811d295bdf65")
                                         .EndDateTime(DateTime.Now)
                                         .Initiator(InteractionInitiator.Contact)
                                         .Contact("jsdemo", "demo")
If you have suggestions for improving this article, let us know!