OpportunitiesById |
Catalog: Autotask
Schema: Opportunities
This is a read-only table function. The Autotask API may not support changing the data or the Invantive UniversalSQL driver for Autotask does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Autotask API.
Parameters of Table Function
The following parameters can be used to control the behaviour of the table function OpportunitiesById. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values.
Value specification by position is done by listing all values from the first to the last needed value. For example: a `select * from table(value1, value2, value3)` on a table with four parameters will use the default value for the fourth parameter and the specified values for the first three.
Value specification by name is done by listing all values that require a value. For example with `select * from table(name1 => value1, name3 => value3)` on the same table will use the default values for the second and fourth parameters and the specified values for the first and third.
Name |
Data Type |
Required |
Default Value |
Documentation |
---|---|---|---|---|
id |
int64 |
☑ |
|
|
Columns of Table Function
The columns of the table function OpportunitiesById are shown below. Each column has an SQL data type.
Name |
Data Type |
Label |
Required |
Documentation |
---|---|---|---|---|
advancedField1 |
double |
Advanced Field 1 |
☐ |
|
advancedField2 |
double |
Advanced Field 2 |
☐ |
|
advancedField3 |
double |
Advanced Field 3 |
☐ |
|
advancedField4 |
double |
Advanced Field 4 |
☐ |
|
advancedField5 |
double |
Advanced Field 5 |
☐ |
|
amount |
double |
Amount |
☐ |
|
assessmentScore |
double |
Assessment Score |
☐ |
|
barriers |
string |
Barriers |
☐ |
|
closedDate |
datetime |
Closed Date |
☐ |
|
companyID |
int32 |
Company ID |
☐ |
|
contactID |
int32 |
Contact ID |
☐ |
|
cost |
double |
Cost |
☐ |
|
createDate |
datetime |
Created |
☐ |
|
creatorResourceID |
int32 |
Creator Resource ID |
☐ |
|
description |
string |
Description |
☐ |
|
helpNeeded |
string |
Help Needed |
☐ |
|
id |
int64 |
ID |
☐ |
|
impersonatorCreatorResourceID |
int32 |
Imperonsator Creator Resource ID |
☐ |
|
lastActivity |
datetime |
Last Activity |
☐ |
|
leadSource |
int32 |
Lead Source |
☐ |
|
lossReason |
int32 |
Loss Reason |
☐ |
|
lossReasonDetail |
string |
Loss Reason Detail |
☐ |
|
lostDate |
datetime |
Lost Date |
☐ |
|
market |
string |
Market |
☐ |
|
monthlyCost |
double |
Monthly Cost |
☐ |
|
monthlyRevenue |
double |
Monthly Revenue |
☐ |
|
nextStep |
string |
Next Step |
☐ |
|
onetimeCost |
double |
One-time Cost |
☐ |
|
onetimeRevenue |
double |
One-time Revenue |
☐ |
|
opportunityCategoryID |
int32 |
Opportunity Category ID |
☐ |
|
organizationalLevelAssociationID |
int32 |
Organizational Level Association ID |
☐ |
|
ownerResourceID |
int32 |
Owner Resource ID |
☐ |
|
primaryCompetitor |
int32 |
Primary Competitor |
☐ |
|
probability |
int32 |
Probability |
☐ |
|
productID |
int32 |
Product ID |
☐ |
|
projectedCloseDate |
datetime |
Projected Close Date |
☐ |
|
promisedFulfillmentDate |
datetime |
Promised Fulfillment Date |
☐ |
|
promotionName |
string |
Promotion Name |
☐ |
|
quarterlyCost |
double |
Quarterly Cost |
☐ |
|
quarterlyRevenue |
double |
Quarterly Revenue |
☐ |
|
rating |
int32 |
Rating |
☐ |
|
relationshipAssessmentScore |
double |
Relationship Assessment Score |
☐ |
|
revenueSpread |
int32 |
Revenue Spread |
☐ |
|
revenueSpreadUnit |
string |
Revenue Spread Unit |
☐ |
|
salesOrderID |
int32 |
Sales Order ID |
☐ |
|
salesProcessPercentComplete |
double |
Sales Process Percent Complete |
☐ |
|
semiannualCost |
double |
Semi-annual Cost |
☐ |
|
semiannualRevenue |
double |
Semi-annual Revenue |
☐ |
|
stage |
int32 |
Stage |
☐ |
|
startDate |
datetime |
Start Date |
☐ |
|
status |
int32 |
Status |
☐ |
|
technicalAssessmentScore |
double |
Technical Assessment Score |
☐ |
|
throughDate |
datetime |
Through Date |
☐ |
|
title |
string |
Title |
☐ |
|
totalAmountMonths |
int32 |
Total Amount Months |
☐ |
|
useQuoteTotals |
boolean |
Use Quote Totals |
☐ |
|
winReason |
int32 |
Win Reason |
☐ |
|
winReasonDetail |
string |
Win Reason Detail |
☐ |
|
yearlyCost |
double |
Yearly Cost |
☐ |
|
yearlyRevenue |
double |
Yearly Revenue |
☐ |
|
10-06-2024 18:39 Version 24.1.3-BETA+4689