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

public RelationshipCall CreateCall(
	Lead lead
)

Parameters

lead
Type: Lead
Lead, the call is created for. Object. Access path: PublicAPI.CRM.Lead

Return Value

Type: RelationshipCall
Call
Examples

//load a lead by ID 
var lead= PublicAPI.CRM.Lead.Load(3);

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

//myCall - created call for a lead 

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