protected override void QualifyCore(Lead lead, IObjectSpace os) { base.QualifyCore(lead, os); if (Opportunity) { Opportunity opportunity = (Opportunity)os.CreateObject(IOpportunityObjectType); opportunity.PotentialCustomer = CreatedCustomer; opportunity.Name = lead.Topic; lead.CopyTo(opportunity as ILeadTarget); } }
public CloseOpportunityParameters(Opportunity opportunity) { this.CloseDate = DateTime.Now; this.ActualRevenue = opportunity.Amount; }