public void SetPositiveClosedStatus( Sale sale, string comment )
Set the "Closed(successfully)" status
Syntax
public void SetPositiveClosedStatus( Sale sale, string comment )
Parameters
- sale
- Type: Sale
Sale, whose status is changed to "Closed(successfully)". 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(successfully)" status PublicAPI.CRM.Sale.SetPositiveClosedStatus(sale, comment);
See Also