Get facts about the activity effectiveness
/crmRestApi/crmSalesIntelligenceApi/11.13.18.05/facts/activityEffectiveness
Request
-
q: string
To identify: A CRM object record by ObjectType and ObjectId values. Example: ObjectType=lead;ObjectId=999999999
There's no request body for this operation.
-
BasicAuthentication: http
Type:
http
Response
- application/json
200 Response
-
Server-Time-In-Millis:
The server time comnsumed by the API to complete execution.
objectActivityEffectivenessFacts-
count: integer
The count of items in current response.
-
hasMore: boolean
A boolean flag which indicates the availability of more matching records at server.
-
items: array
items
The activity effectiveness facts array.
-
limit: integer
The limit applied to the query.
-
links: array
links
The links.
-
offset: integer
The offset applied to the query.
array-
Array of:
object ActivityEffectivenessFactItems
Title:
ActivityEffectivenessFactItemsThe facts about the activity effectiveness of a record generated using the object and record level metrics.
array-
Array of:
object Link
Title:
LinkThe link item.
objectActivityEffectivenessFactItems-
CreatedBy: string
Indicates the user who created the row.
-
CreationDate: string
(date-time)
Indicates the date and time of the creation of the row.
-
ExplanationText: string
The explanation for the record classification .
-
InsightFactId: integer
The auto-generated unique identifier for an insight fact.
-
InsightTemplateUuid: string
(uuid)
The auto-generated unique Identifier for an insight template
-
InsightTypeCode: string
A unique code assigned to an insight template.
-
LastUpdateDate: string
(date-time)
Indicates the date and time of the last update of the row.
-
LastUpdatedBy: string
Indicates the user who last updated the row.
-
LastUpdateLogin: string
Indicates the session login associated to the user who last updated the row.
-
ObjectId: integer
The PK attribute value of the CRM record
-
ObjectType: string
The object type name of the CRM entity.
-
RecordClassification: string
The classification text of the record based on the facts generated.
-
RecordClassificationCode: string
The classification code of the record based on the facts generated.
-
RecordFacts: array
RecordFacts
The record level facts generated by comparing record query result against object metrics.
array-
Array of:
object ActivityEffectivenessFact
Title:
ActivityEffectivenessFactThe fact data about the activity effectiveness.
objectActivityEffectivenessFact-
CurrentSalesStage: string
The id of the current sales stage (if the object type is opportunity)
-
InsightSubTypeCode: string
The insight sub type code.
-
ObjectAverage: string
The object level average.
-
RecordAge: string
The age of the record.
-
StatusCode: string
The status code (if the object type is lead)
-
TotalCount: string
The total count of the records matching the query.
objectLink-
href: string
The link href.
-
kind: string
The link kind.
-
name: string
The link name.
-
rel: string
The link relation.
400 Response
401 Response
404 Response
405 Response
500 Response
Examples
The following example shows how to get activity effectiveness of a record by submitting a get request on the REST resource using cURL.
cURL Command
curl -u <username:password> \ -X GET https://servername.fa.us2.oraclecloud.com/fscmRestApi/crmSalesIntelligenceApi/latest/facts/activityEffectiveness?q=ObjectType=opportunity;ObjectId=300100543297390
Example of Response Body where ObjectType is opportunity
The following shows an example of the response body in JSON format.
{
"items": [
{
"InsightFactId": 100100298114819,
"InsightTypeCode": "ACTIVITY_EFFECTIVENESS",
"LastUpdatedBy": "FUSION_APPS_CRM_ESS_APPID",
"LastUpdateLogin": "CB122C62EADA5B00E053AC0AF50A18EC",
"InsightTemplateUuid": "6b178a58-ddfd-11ea-87d0-0242ac130003",
"CreationDate": "2021-09-03T05:54:29+00:00",
"RecordClassificationCode": "NOT_AVAILABLE",
"ObjectType": "opportunity",
"RecordClassification": "Not available",
"LastUpdateDate": "2021-09-03T06:18:31+00:00",
"ExplanationText": "The Activity Effectiveness insight is not available for this record ",
"CreatedBy": "FUSION_APPS_CRM_ESS_APPID",
"RecordFacts": [],
"ObjectId": 300100543297390
}
],
"offset": 0,
"limit": 25,
"hasMore": false,
"count": 1,
"links": [
{
"name": "self",
"kind": "collection",
"href": " https://servername.fa.us2.oraclecloud.com/crmRestApi/crmSalesIntelligenceApi/11.13.18.05/facts/activityEffectiveness",
"rel": "self"
}
]
}
cURL Command
curl -u <username:password> \ -X
https://servername.fa.us2.oraclecloud.com/fscmRestApi/crmSalesIntelligenceApi/latest/facts/activityEffectiveness?q=ObjectType=lead;ObjectId=100100001758625
Example of Response Body where ObjectType is lead
The following shows an example of the response body in JSON format.
{
"items": [
{
"InsightFactId": 100100300988151,
"InsightTypeCode": "ACTIVITY_EFFECTIVENESS",
"LastUpdatedBy": "SALES_ADMIN",
"LastUpdateLogin": "CAE17C0ED310C825E053AC0AF50AAA1E",
"InsightTemplateUuid": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"CreationDate": "2021-09-07T06:09:28+00:00",
"RecordClassificationCode": "NOT_AVAILABLE",
"ObjectType": "lead",
"RecordClassification": "Not available",
"LastUpdateDate": "2021-09-07T06:09:28+00:00",
"ExplanationText": "The Activity Effectiveness insight is not available for this record ",
"CreatedBy": "SALES_ADMIN",
"RecordFacts": [],
"ObjectId": 100100001758625
}
],
"offset": 0,
"limit": 25,
"hasMore": false,
"count": 1,
"links": [
{
"name": "self",
"kind": "collection",
"href": " https://servername.fa.us2.oraclecloud.com/crmRestApi/crmSalesIntelligenceApi/11.13.18.05/facts/activityEffectiveness",
"rel": "self"
}
]
}