The Contact method

Version:

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

PropertyDetails
UT SDK methodContact(string, string)
Required/optionalOptional
Multiple invocationsMultiple invocations are forbidden and cause an InvalidOperationException exception
Value validationEach 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!