public void SetStage( Sale sale, SaleStage saleStage, string comment )
Change a deal stage
Syntax
public void SetStage( Sale sale, SaleStage saleStage, string comment )
Parameters
- sale
- Type: Sale
Sale, whose stage needs to be changed. Object. Access path: PublicAPI.CRM.Sale
- saleStage
- Type: SaleStage
New Sale Stage. Object. Access path: PublicAPI.CRM.Objects.SaleStage
- comment
- Type: System String
Comment when changing the stage (optional parameter)
Examples
//load a sale by ID var sale = PublicAPI.CRM.Sale.Load(3); //load a sale stage by ID var saleStage = PublicAPI.CRM.Objects.SaleStage.Load(3); //comment, when changing a sale stage var comment= "Comment"; //change the sale stage PublicAPI.CRM.Sale.SetStage(sale, saleStage, comment);
See Also