Start a conversation
Applies to: Skype for Business 2015
The following procedure assumes that the user is signed in and has a person to communicate with.
Start a peer-to-peer conversation
Call the ConversationsManager.getConversation method, with a person for the only argument, to create a conversation object.
Call the start method on the desired modality to add the modality and start the conversation. See the following topics to add modalities:
Send and receive text in a conversation
The following example creates a peer-to-peer conversation.
// create a conversation model
var person = somePerson; // this somePerson can be obtained via search or from persons list
var conversation = conversationsManager.getConversation(person);
// start modality
Start a multiparty conversation (ad-hoc meeting)
Call the ConversationsManager.createConversation method, with no arguments, to create a multiparty conversation object. This conversation will be a multiparty conversation regardless of the number of participants in the conversation.
Call the start method on the desired modality to add the modality and start the conversation.
The following example creates a peer-to-peer conversation.
// create a multiparty conversation model
var conversation = conversationsManager.createConversation();
// start modality
Escalate a peer-to-peer conversation to a multiparty conversation
A peer-to-peer conversation will be automatically escalated to a multiparty conversation when a second remote participant is added to the conversation. See Add participants to a conversation to add participants.