PublicAPI.CRM.Sale.SetNegativeClosedStatus ELMA API Documentation
Set the "Closed(unsuccessfully)" status
 
 
Syntax

public void SetNegativeClosedStatus(
	Sale sale,
	string comment
)

Parameters

sale
Type: Sale
Sale, whose status is changed to "Closed(unsuccessfully)". 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 "Closed(unsuccessfully)" status
PublicAPI.CRM.Sale.SetNegativeClosedStatus(sale, comment);
See Also