PublicAPI.CRM.Relationship.CreateCall ELMA API Documentation
Create Call for a contact. (Creates an object without saving to the database)
 
 
Syntax

public RelationshipCall CreateCall(
	Contact contact
)

Parameters

contact
Type: Contact
Contact, the call is created for. Object. Access path: PublicAPI.CRM.Contact

Return Value

Type: RelationshipCall
Call
Examples

//load a contact by ID 
var contact = PublicAPI.CRM.Contact.Load(3);

//create a call 
var myCall = PublicAPI.CRM.Relationship.CreateCall(contact);

//myCall - created call for a contact 

//WARNING!! A call is created without a name. For correct work with the call, you should 
//specify its name and sabe the object to the database
myCall.Theme = "Call Name";
myCall.Save();
See Also