PublicAPI.CRM.Sale.SetActiveStatus ELMA API Documentation
Set the "Active" status
 
 
Syntax

public void SetActiveStatus(
	Sale sale,
	string comment
)

Parameters

sale
Type: Sale
Sale, whose status is changed to "Active" . Object. Access path: PublicAPI.CRM.Sale
comment
Type: System String
Comment when changing the status (optional parameter)
Examples

//load a sale by ID 
var sale = PublicAPI.CRM.Sale.Load(3);
//comment when changing the sale status 
var comment = "Comment";

//set the "Active" status
PublicAPI.CRM.Sale.SetActiveStatus(sale, comment);
See Also