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);
     }
 }
Exemple #2
0
 public CloseOpportunityParameters(Opportunity opportunity)
 {
     this.CloseDate     = DateTime.Now;
     this.ActualRevenue = opportunity.Amount;
 }