Opportunity Object
The Opportunity object represents a record designed to maximize product and service sales.
Version Information
Outlook 2007
Requirements
Business Contact Manager for Outlook
Remarks
You must link an Opportunity object with exactly one Account or Business Contact object; an Opportunity cannot exist without an Account or Business Contact. You can add some communication history items—appointments, business notes, files, and tasks—to an opportunity record. When you create an opportunity programmatically, you must reload the Opportunity object before the Account or Business Contact link will display in the Opportunity form.
By using the Outlook object model, you can programmatically:
- Create a new opportunity associated with an Account or Business Contact.
- Select an existing Opportunity.
- Edit Opportunity properties.
- Delete an Opportunity.
The Opportunities folder contains Opportunity records. You cannot programmatically copy Opportunity records to any other folder.
Example
The following C# and Visual Basic for Applications (VBA) code examples show how to create a new object instance of type IPM.Task.BCM.Opportunity.
[C#]
Outlook.TaskItem newOpportunity = (Outlook.TaskItem)opportunities.Items.Add("IPM.Task.BCM.Opportunity");
FakePre-72a681105532454a9aa7abb47c533352-6e5c43c1fd1c4570b6bd6e7d07e447c5
Properties
Close Date, Competitors, Created By, DeliveryDate, Expected Revenue, ExpirationDate, Grand Parent Entity EntryID, Modified By, Opportunity Product, Opportunity Status, Opportunity Type, Parent Entity EntryID, ParentDisplayName, PaymentTerms, Probability, Sales Stage, Source of Lead, Total Discount, Total Value
Parent Objects
For more information, download the Outlook 2007 Developer Reference by going to the 2007 Office System: Updated Developer Content Web site.
See Also
About Communication History Items | Create an Opportunity linked to a BCM Account | Create an Opportunity linked to a Business Contact | Select an Opportunity | Edit an Opportunity | Delete an Opportunity