Table "Opportunity Entry"
ID 5093
Namespace: Microsoft.CRM.Opportunity
Properties
Fields
| Name |
Type |
Description |
| "Entry No." |
Integer
|
|
| "Opportunity No." |
Code[20]
|
Specifies the number of the opportunity to which this entry applies.
|
| "Sales Cycle Code" |
Code[10]
|
Specifies the code of the sales cycle to which the opportunity is linked.
|
| "Sales Cycle Stage" |
Integer
|
Specifies the sales cycle stage currently of the opportunity.
|
| "Contact No." |
Code[20]
|
|
| "Contact Company No." |
Code[20]
|
|
| "Salesperson Code" |
Code[20]
|
|
| "Campaign No." |
Code[20]
|
|
| "Date of Change" |
Date
|
Specifies the date this opportunity entry was last changed.
|
| Active |
Boolean
|
Specifies that the opportunity entry is active.
|
| "Date Closed" |
Date
|
Specifies the date that the opportunity was closed.
|
| "Days Open" |
Decimal
|
Specifies the number of days that the opportunity entry was open.
|
| "Action Taken" |
Enum Microsoft.CRM.Opportunity."Opportunity Action Taken"
|
Specifies the action that was taken when the entry was last updated. There are six options:
|
| "Estimated Value (LCY)" |
Decimal
|
|
| "Calcd. Current Value (LCY)" |
Decimal
|
|
| "Completed %" |
Decimal
|
Specifies the percentage of the sales cycle that has been completed for this opportunity entry.
|
| "Chances of Success %" |
Decimal
|
Specifies the chances of success of the opportunity entry.
|
| "Probability %" |
Decimal
|
Specifies the probability of the opportunity resulting in a sale.
|
| "Close Opportunity Code" |
Code[10]
|
Specifies the code for closing the opportunity.
|
| "Previous Sales Cycle Stage" |
Integer
|
Specifies the sales cycle stage of the opportunity before this entry.
|
| "Estimated Close Date" |
Date
|
Specifies the estimated date when the opportunity entry will be closed.
|
| "Wizard Step" |
Option
|
|
| "Cancel Old To Do" |
Boolean
|
Specifies a task is to be cancelled from the opportunity.
|
| "Action Type" |
Option
|
Specifies options that you can take when you reenter an opportunity to update it in the Update Opportunity window. Certain options are not available, depending on what stage you are in for your opportunity. For example, if you are in stage 1, you cannot select the Previous option.
|
| "Sales Cycle Stage Description" |
Text[100]
|
Specifies a description of the sales cycle that is related to the task. The description is copied from the sales cycle card.
|
| SystemId |
Guid
|
|
| SystemCreatedAt |
DateTime
|
|
| SystemCreatedBy |
Guid
|
|
| SystemModifiedAt |
DateTime
|
|
| SystemModifiedBy |
Guid
|
|
| SystemCreatedByUserName |
Text[50]
|
|
| SystemCreatedByFullName |
Text[80]
|
|
| SystemModifiedByUserName |
Text[50]
|
|
| SystemModifiedByFullName |
Text[80]
|
|
| SystemRowVersion |
BigInteger
|
|
Methods
GetLastEntryNo
procedure GetLastEntryNo(): Integer
Returns
InsertEntry
procedure InsertEntry(var OpportunityEntryToInsert: Record "Opportunity Entry"; CancelOldTask: Boolean; CreateNewTask: Boolean)
Parameters
UpdateEstimates
procedure UpdateEstimates()
CreateTask
procedure CreateTask(CancelOldTask: Boolean; CreateNewTask: Boolean)
Parameters
| Name |
Type |
Description |
|
CancelOldTask
|
Boolean |
|
|
CreateNewTask
|
Boolean |
|
GetSalesDocValue
procedure GetSalesDocValue(SalesHeader: Record "Sales Header"): Decimal
Parameters
Returns
InitOpportunityEntry
procedure InitOpportunityEntry(Opportunity: Record Opportunity)
Parameters
CloseOppFromOpp
procedure CloseOppFromOpp(var Opportunity: Record Opportunity)
Parameters
CheckStatus
FinishWizard
UpdateOppFromOpp
procedure UpdateOppFromOpp(var Opportunity: Record Opportunity)
Parameters
CheckStatus2
FinishWizard2
procedure FinishWizard2()
WizardActionTypeValidate2
procedure WizardActionTypeValidate2()
WizardSalesCycleStageValidate2
procedure WizardSalesCycleStageValidate2()
CreateStageList
procedure CreateStageList()
ValidateStage
procedure ValidateStage()
NoOfSalesCyclesFirst
procedure NoOfSalesCyclesFirst(): Integer
Returns
NoOfSalesCyclesNext
procedure NoOfSalesCyclesNext(): Integer
Returns
NoOfSalesCyclesPrev
procedure NoOfSalesCyclesPrev(): Integer
Returns
NoOfSalesCyclesSkip
procedure NoOfSalesCyclesSkip(): Integer
Returns
NoOfSalesCyclesUpdate
procedure NoOfSalesCyclesUpdate(): Integer
Returns
NoOfSalesCyclesJump
procedure NoOfSalesCyclesJump(): Integer
Returns
ValidateSalesCycleStage
procedure ValidateSalesCycleStage()
LookupSalesCycleStage
procedure LookupSalesCycleStage()
Events
OnAfterInitOpportunityEntry
[IntegrationEvent(False,False)]
local procedure OnAfterInitOpportunityEntry(Opportunity: Record Opportunity; var OpportunityEntry: Record "Opportunity Entry")
Parameters
OnAfterInsertEntry
[IntegrationEvent(False,False)]
local procedure OnAfterInsertEntry(var OpportunityEntry: Record "Opportunity Entry")
Parameters
OnAfterValidateStage
[IntegrationEvent(False,False)]
local procedure OnAfterValidateStage(var OpportunityEntry: Record "Opportunity Entry")
Parameters
OnBeforeCheckStatus
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckStatus(var OpportunityEntry: Record "Opportunity Entry"; var IsHandled: Boolean)
Parameters
OnBeforeCheckStatus2
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckStatus2(var OpportunityEntry: Record "Opportunity Entry"; var IsHandled: Boolean)
Parameters
OnBeforeCloseOppFromOpp
[IntegrationEvent(False,False)]
local procedure OnBeforeCloseOppFromOpp(var Opportunity: Record Opportunity; var OpportunityEntry: Record "Opportunity Entry"; var IsHandled: Boolean)
Parameters
OnBeforeCreateStageList
[IntegrationEvent(False,False)]
local procedure OnBeforeCreateStageList(var OpportunityEntry: Record "Opportunity Entry"; var OpportunityEntryRec: Record "Opportunity Entry"; var IsHandled: Boolean)
Parameters
OnBeforeGetSalesDocValue
[IntegrationEvent(False,False)]
local procedure OnBeforeGetSalesDocValue(SalesHeader: Record "Sales Header"; var Result: Decimal; var IsHandled: Boolean)
Parameters
OnBeforeStartWizard
[IntegrationEvent(False,False)]
local procedure OnBeforeStartWizard(var OpportunityEntry: Record "Opportunity Entry"; var CloseOpportunityPageId: Integer; var IsHandled: Boolean)
Parameters
OnBeforeTestCust
[IntegrationEvent(False,False)]
local procedure OnBeforeTestCust(OpportunityEntry: Record "Opportunity Entry"; var IsHandled: Boolean)
Parameters
OnBeforeUpdateEstimates
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateEstimates(var OpportunityEntry: Record "Opportunity Entry"; var IsHandled: Boolean)
Parameters
OnBeforeUpdateOppFromOpp
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateOppFromOpp(var Opportunity: Record Opportunity; var OpportunityEntry: Record "Opportunity Entry"; var IsHandled: Boolean)
Parameters
OnBeforeValidateSalesCycleStage
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateSalesCycleStage(var OpportunityEntry: Record "Opportunity Entry")
Parameters
OnCloseOppFromOppOnBeforeStartWizard
[IntegrationEvent(False,False)]
local procedure OnCloseOppFromOppOnBeforeStartWizard(Opportunity: Record Opportunity; var OpportunityEntry: Record "Opportunity Entry"; var IsHandled: Boolean)
Parameters
OnCreateTaskOnBeforeInsertTask
[IntegrationEvent(False,False)]
local procedure OnCreateTaskOnBeforeInsertTask(var OpportunityEntry: Record "Opportunity Entry"; var Task: Record "To-do")
Parameters
OnFinishWizardOnAfterInsertEntry
[IntegrationEvent(False,False)]
local procedure OnFinishWizardOnAfterInsertEntry(OpportunityEntry: Record "Opportunity Entry")
Parameters
OnFinishWizard2OnAfterInsertEntry
[IntegrationEvent(False,False)]
local procedure OnFinishWizard2OnAfterInsertEntry(OpportunityEntry: Record "Opportunity Entry")
Parameters
OnUpdateEstimatesOnBeforeModifyOpportunityEntry
[IntegrationEvent(False,False)]
local procedure OnUpdateEstimatesOnBeforeModifyOpportunityEntry(var OpportunityEntry: Record "Opportunity Entry"; SalesHeader: Record "Sales Header")
Parameters
OnUpdateOppFromOppOnBeforeStartWizard2
[IntegrationEvent(False,False)]
local procedure OnUpdateOppFromOppOnBeforeStartWizard2(Opportunity: Record Opportunity; var OpportunityEntry: Record "Opportunity Entry")
Parameters
OnBeforeTestQuote
[IntegrationEvent(False,False)]
local procedure OnBeforeTestQuote(OpportunityEntry: Record "Opportunity Entry"; var IsHandled: Boolean)
Parameters
OnBeforeCheckEstimatedValues
[IntegrationEvent(True,False)]
local procedure OnBeforeCheckEstimatedValues(var OpportunityEntry: Record "Opportunity Entry"; xOpportunityEntry: Record "Opportunity Entry"; var IsHandled: Boolean)
Parameters
OnStartWizard2OnBeforeRunModalPage
[IntegrationEvent(True,False)]
local procedure OnStartWizard2OnBeforeRunModalPage(var OpportunityEntry: Record "Opportunity Entry"; xOpportunityEntry: Record "Opportunity Entry"; var IsHandled: Boolean)
Parameters
OnFinishWizard2OnBeforeValidateSalesCycleStageDescription
[IntegrationEvent(False,False)]
local procedure OnFinishWizard2OnBeforeValidateSalesCycleStageDescription(var OpportunityEntry: Record "Opportunity Entry"; var IsHandled: Boolean)
Parameters
OnFinishWizardOnAfterUpdateEstimates
[IntegrationEvent(False,False)]
local procedure OnFinishWizardOnAfterUpdateEstimates(var OpportunityEntry: Record "Opportunity Entry")
Parameters
OnOnInsertOnBeforeModifyOpportunity
[IntegrationEvent(False,False)]
local procedure OnOnInsertOnBeforeModifyOpportunity(var OpportunityEntry: Record "Opportunity Entry"; var Opportunity: Record Opportunity; var ShouldModifyOpportunity: Boolean)
Parameters
OnInsertEntryOnBeforeInsert
[IntegrationEvent(False,False)]
local procedure OnInsertEntryOnBeforeInsert(var OpportunityEntryToInsert: Record "Opportunity Entry"; var OpportunityEntryInserted: Record "Opportunity Entry")
Parameters
See also