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