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

public RelationshipCall CreateCall(
	Contractor contractor
)

Parameters

contractor
Type: Contractor
Contractor, the call is created for. Object. Access path: PublicAPI.CRM.Contractor

Return Value

Type: RelationshipCall
Call
Examples

//load a contractor by ID 
var contractor = PublicAPI.CRM.Contractor.Load(3);

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

//myCall - created call for a contractor 

//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