Overview
OpportunityType indicates the type of Opportunity. Clients can create, edit or archive OpportunityTypes in ARM customisations. To call the OpportunityType endpoint, use one of the URLs from the following table:
URL |
GET |
PUT |
POST |
DELETE |
https://api.mypcorp.com/opportunityType |
✔ |
|
|
|
https://api.mypcorp.com/opportunityType/{TypeId} |
✔ |
|
|
|
Get
The following table illustrates which fields can be included when receiving a GET response.
NB: Nested properties are hidden by default. To expand all nested properties, add a query parameter $expand=* to the URL.
OpportunityType
Field |
Description |
TypeId integer (Identifier) |
Opportunity type id. |
Name string |
The name of the opportunity type. |
ArchiveDate datetime |
Date when the opportunity type was archived, if it has been archived. |
Example JSON response format:
{
"@odata.context": "https://api.mypcorp.com/$metadata#OpportunityType",
"value": [
{
"TypeId": 5,
"Name": "Products",
"ArchiveDate": null
}
]
}