Application Services Interface Reference > Predefined Application Service Interfaces > External Opportunity Create/External Opportunity Query/External Opportunity Update >
Opportunity
The Opportunity ASI encapsulates all the data that is directly related to the Opportunity object. This data includes fields such as Opportunity Name, Status, and so on.
Table 44 lists the primary integration components of Opportunity.
Table 44. Opportunity Integration Components
Integration Component
|
XML Tag
|
User Keys
|
Action
|
Action
|
- Type
- Due
- Description
- Comment
|
Contact
|
Contact
|
- DUNS Number
- First Name
- Last Name
- Middle Name
|
Contact_Account
|
Contact_Account
|
- Account
- Account Location
|
Contact_Account_Business Address
|
Contact_Account_BusinessAddress
|
- Street Address
- Street Address 2
- City
- State
- Postal Code
- Country
|
Contact_Personal Address
|
Contact_PersonalAddress
|
- Street Address
- Street Address 2
- City
- State
- Postal Code
- Country
|
Opportunity
|
Opportunity
|
- Name
|
Opportunity Note
|
OpportunityNote
|
- Note
- Note Type
- Opportunity Name
|
Opportunity_Business Address
|
OpportunityBusinessAddress
|
- Street Address
- Street Address 2
- City
- State
- Postal Code
- Country
|
Revenue
|
Revenue
|
- Revenue Item Number
|
Table 45 lists the fields and their attributes.
Table 45. Opportunity ASI Fields
Name
|
XML Tag
|
Data Type
|
Length
|
Req.
|
Notes
|
Action
|
Comment
|
Comment
|
DTYPE_TEXT
|
1,500
|
N
|
|
Description
|
Description
|
DTYPE_TEXT
|
100
|
N
|
|
Done
|
Done
|
DTYPE_TEXT
|
50
|
N
|
|
Due
|
Due
|
DTYPE_TEXT
|
50
|
N
|
|
Id
|
Id
|
DTYPE_ID
|
30
|
N
|
|
Planned
|
Planned
|
DTYPE_TEXT
|
50
|
N
|
|
Planned Completion
|
PlannedCompletion
|
DTYPE_TEXT
|
50
|
N
|
|
Priority
|
Priority
|
DTYPE_TEXT
|
30
|
N
|
|
Started
|
Started
|
DTYPE_TEXT
|
50
|
N
|
|
Status
|
Status
|
DTYPE_TEXT
|
30
|
N
|
|
Type
|
Type
|
DTYPE_TEXT
|
30
|
N
|
|
Contact
|
Account Id
|
AccountId
|
DTYPE_ID
|
15
|
N
|
|
Account Integration Id
|
AccountIntegrationId
|
DTYPE_TEXT
|
30
|
N
|
|
Cellular Phone #
|
CellularPhone
|
DTYPE_TEXT
|
40
|
N
|
|
Comment
|
Comment
|
DTYPE_TEXT
|
255
|
N
|
|
DUNS Number
|
DUNSNumber
|
DTYPE_TEXT
|
15
|
N
|
|
Email Address
|
EmailAddress
|
DTYPE_TEXT
|
50
|
N
|
|
Fax Phone #
|
FaxPhone
|
DTYPE_TEXT
|
40
|
N
|
|
First Name
|
FirstName
|
DTYPE_TEXT
|
50
|
N
|
|
Home Phone #
|
HomePhone
|
DTYPE_TEXT
|
40
|
N
|
|
Id
|
Id
|
DTYPE_ID
|
30
|
N
|
|
Job Title
|
JobTitle
|
DTYPE_TEXT
|
75
|
N
|
|
Last Name
|
LastName
|
DTYPE_TEXT
|
50
|
N
|
|
M/M
|
MM
|
DTYPE_TEXT
|
15
|
N
|
|
Middle Name
|
MiddleName
|
DTYPE_TEXT
|
50
|
N
|
|
Primary Account Name
|
PrimaryAccountName
|
DTYPE_TEXT
|
100
|
N
|
|
Work Phone #
|
WorkPhone
|
DTYPE_TEXT
|
40
|
N
|
|
Contact_Account
|
Account
|
Name
|
DTYPE_TEXT
|
100
|
N
|
|
Account Location
|
Location
|
DTYPE_TEXT
|
50
|
N
|
|
Currency Code
|
CurrencyCode
|
DTYPE_TEXT
|
15
|
N
|
|
Customer Account Group
|
CustomerAccountGroup
|
DTYPE_TEXT
|
30
|
N
|
|
DUNS Number
|
DUNSNumber
|
DTYPE_TEXT
|
15
|
N
|
|
Group Type Code
|
GroupTypeCode
|
DTYPE_TEXT
|
30
|
N
|
|
IsPrimaryMVG
|
IsPrimaryMVG
|
DTYPE_TEXT
|
1
|
N
|
|
Party Type Code
|
PartyTypeCode
|
DTYPE_TEXT
|
30
|
N
|
|
Contact_Account_Business Address
|
Address Name
|
AddressName
|
DTYPE_TEXT
|
100
|
N
|
|
City
|
City
|
DTYPE_TEXT
|
50
|
N
|
|
Country
|
Country
|
DTYPE_TEXT
|
50
|
N
|
|
Email Address
|
EmailAddress
|
DTYPE_TEXT
|
50
|
N
|
|
IsPrimaryMVG
|
IsPrimaryMVG
|
DTYPE_TEXT
|
1
|
N
|
|
Phone Number
|
PhoneNumber
|
DTYPE_TEXT
|
40
|
N
|
|
Postal Code
|
PostalCode
|
DTYPE_TEXT
|
30
|
N
|
|
State
|
State
|
DTYPE_TEXT
|
10
|
N
|
|
Street Address
|
StreetAddress
|
DTYPE_TEXT
|
200
|
N
|
|
Street Address 2
|
StreetAddress2
|
DTYPE_TEXT
|
100
|
N
|
|
Contact_Personal Address
|
Address Name
|
AddressName
|
DTYPE_TEXT
|
100
|
N
|
|
Integration Id
|
IntegrationId
|
DTYPE_TEXT
|
30
|
N
|
|
IsPrimaryMVG
|
IsPrimaryMVG
|
DTYPE_TEXT
|
1
|
N
|
|
Personal City
|
PersonalCity
|
DTYPE_TEXT
|
50
|
N
|
|
Personal Country
|
PersonalCountry
|
DTYPE_TEXT
|
50
|
N
|
|
Personal Postal Code
|
PersonalPostalCode
|
DTYPE_TEXT
|
30
|
N
|
|
Personal State
|
PersonalState
|
DTYPE_TEXT
|
10
|
N
|
|
Personal Street Address
|
PersonalStreetAddress
|
DTYPE_TEXT
|
200
|
N
|
|
Personal Street Address 2
|
PersonalStreetAddress2
|
DTYPE_TEXT
|
100
|
N
|
|
Opportunity
|
Account
|
AccountName
|
DTYPE_TEXT
|
100
|
N
|
|
Account Integration Id
|
AccountIntegrationId
|
DTYPE_TEXT
|
30
|
N
|
|
Account Location
|
AccountLocation
|
DTYPE_TEXT
|
50
|
N
|
|
Currency Code
|
CurrencyCode
|
DTYPE_TEXT
|
15
|
N
|
|
DUNS Number
|
DUNSNumber
|
DTYPE_TEXT
|
15
|
N
|
|
Description
|
Description
|
DTYPE_TEXT
|
255
|
N
|
|
Id
|
Id
|
DTYPE_ID
|
30
|
N
|
|
Name
|
Name
|
DTYPE_TEXT
|
100
|
N
|
|
Parent Opportunity Name
|
ParentOpportunityName
|
DTYPE_TEXT
|
100
|
N
|
|
Primary Revenue Amount
|
PrimaryRevenueAmount
|
DTYPE_TEXT
|
22
|
N
|
|
Primary Revenue Class
|
PrimaryRevenueClass
|
DTYPE_TEXT
|
30
|
N
|
|
Primary Revenue Close Date
|
PrimaryRevenueCloseDate
|
DTYPE_DATETIME
|
50
|
N
|
|
Primary Revenue Type
|
PrimaryRevenueType
|
DTYPE_TEXT
|
30
|
N
|
|
Primary Revenue Win Probability
|
PrimaryRevenueWinProbability
|
DTYPE_NUMBER
|
22
|
N
|
|
Sales Method
|
SalesMethod
|
DTYPE_TEXT
|
30
|
N
|
|
Sales Stage
|
SalesStage
|
DTYPE_TEXT
|
30
|
N
|
|
Opportunity Note
|
Id
|
Id
|
DTYPE_ID
|
30
|
N
|
|
Note
|
Note
|
DTYPE_NOTE
|
1,000
|
N
|
|
Note Type
|
NoteType
|
DTYPE_TEXT
|
30
|
N
|
|
Opportunity Name
|
OpportunityName
|
DTYPE_TEXT
|
100
|
N
|
|
Opportunity_Business Address
|
City
|
City
|
DTYPE_TEXT
|
50
|
N
|
|
Country
|
Country
|
DTYPE_TEXT
|
50
|
N
|
|
Integration Id
|
IntegrationId
|
DTYPE_TEXT
|
30
|
N
|
|
IsPrimaryMVG
|
IsPrimaryMVG
|
DTYPE_TEXT
|
1
|
N
|
|
Postal Code
|
PostalCode
|
DTYPE_TEXT
|
30
|
N
|
|
State
|
State
|
DTYPE_TEXT
|
10
|
N
|
|
Stree Address Line 2
|
StreeAddressLine2
|
DTYPE_TEXT
|
100
|
N
|
|
Street Address
|
StreetAddress
|
DTYPE_TEXT
|
200
|
N
|
|
Revenue
|
Account
|
Account
|
DTYPE_TEXT
|
100
|
N
|
|
Account Location
|
AccountLocation
|
DTYPE_TEXT
|
50
|
N
|
|
Committed
|
Committed
|
DTYPE_TEXT
|
1
|
N
|
|
Currency Code
|
CurrencyCode
|
DTYPE_TEXT
|
20
|
N
|
|
Date
|
Date
|
DTYPE_DATETIME
|
50
|
N
|
|
Description
|
Description
|
DTYPE_TEXT
|
100
|
N
|
|
Id
|
Id
|
DTYPE_ID
|
30
|
N
|
|
Part Number
|
PartNumber
|
DTYPE_TEXT
|
50
|
N
|
|
Price
|
Price
|
DTYPE_TEXT
|
22
|
N
|
|
Product
|
Product
|
DTYPE_TEXT
|
50
|
N
|
|
Quantity
|
Quantity
|
DTYPE_NUMBER
|
22
|
N
|
|
Revenue
|
Revenue
|
DTYPE_TEXT
|
22
|
N
|
|
Revenue Class
|
RevenueClass
|
DTYPE_TEXT
|
30
|
N
|
|
Revenue Item Number
|
RevenueItemNumber
|
DTYPE_TEXT
|
30
|
N
|
|
Revenue Type
|
RevenueType
|
DTYPE_TEXT
|
30
|
N
|
|
Summary
|
Summary
|
DTYPE_TEXT
|
1
|
N
|
|
Win Probability
|
WinProbability
|
DTYPE_NUMBER
|
22
|
N
|
|