Get facts about the engagement level
get
/crmRestApi/crmSalesIntelligenceApi/11.13.18.05/facts/engagementLevel
This method is used get the record level facts about the engagement level of a record.
Request
Query Parameters
-
q: string
To identify: A CRM object record by ObjectType and ObjectId values. Example: ObjectType=account;ObjectId=999999999
There's no request body for this operation.
Security
-
BasicAuthentication: http
Type:
http
Response
Supported Media Types
- application/json
200 Response
OK
Headers
-
Server-Time-In-Millis:
The server time comnsumed by the API to complete execution.
Root Schema : EngagementLevelFacts
Type:
object
Title:
EngagementLevelFacts
The engagementLevel API response.
Show Source
-
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 engagement level fact items.
-
limit: integer
The limit applied to the query.
-
links: array
links
The links.
-
offset: integer
The offset applied to the query.
Nested Schema : items
Type:
array
The engagement level fact items.
Show Source
-
Array of:
object EngagementLevelFactItems
Title:
EngagementLevelFactItems
The facts about the engagement level of a record generated using the object and record level metrics.
Nested Schema : links
Type:
array
The links.
Show Source
-
Array of:
object Link
Title:
Link
The link item.
Nested Schema : EngagementLevelFactItems
Type:
object
Title:
EngagementLevelFactItems
The facts about the engagement level of a record generated using the object and record level metrics.
Show Source
-
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.
Nested Schema : RecordFacts
Type:
array
The record level facts generated by comparing record query result against object metrics.
Show Source
-
Array of:
object EngagementLevelFact
Title:
EngagementLevelFact
The fact data about the engagement level.
Nested Schema : EngagementLevelFact
Type:
object
Title:
EngagementLevelFact
The fact data about the engagement level.
Show Source
-
AccountName: string
The account name.
-
DaysSinceLastTouched: string
The days since last touched the record.
-
InsightSubTypeCode: string
A unique code which is a sub type of the current insight type.
-
LastTouchedDateTime: string
(date-time)
Indicates when the account or a record related to the account was last updated.
-
LastTouchedObjectId: string
The last touched object ID.
-
LastTouchedObjectType: string
The last touched object type.
-
LastTouchedRecordName: string
The last touched record name.
-
LastTouchedRecordType: string
The last touched record type.
-
LastTouchedSourceObjectType: string
The last touched source object type.
-
LastTouchedSourceRecordName: string
The last touched source record name.
-
SalesCycle: string
The sales cycle value.
-
TouchedRecordCount: string
The number of records updated by the user within the stipulated time frame.
Nested Schema : Link
Type:
object
Title:
Link
The link item.
Show Source
-
href: string
The link href.
-
kind: string
The link kind.
-
name: string
The link name.
-
rel: string
The link relation.
400 Response
Bad Request
401 Response
Unauthorized
404 Response
Not Found
405 Response
Method Not Allowed
500 Response
Internal Server Error
Examples
The following example shows how to get engagement-level facts 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/crmRestApi/crmSalesIntelligenceApi/latest/facts/engagementLevel?q=ObjectType=account;ObjectId=300100543323833
Example of Response Body
The following shows an example of the response body in JSON format.
{ "items": [ { "InsightFactId": 100100298114825, "InsightTypeCode": "ENGAGEMENT_LEVEL", "LastUpdatedBy": "SALES_ADMIN", "LastUpdateLogin": "CAE180CA5D7AC82DE053AC0AF50AB757", "InsightTemplateUuid": "f290f1ee-6c54-4b01-90e6-d701748f0871", "CreationDate": "2021-09-03T06:18:34+00:00", "RecordClassificationCode": "LOW", "ObjectType": "account", "RecordClassification": "Lonely", "LastUpdateDate": "2021-09-07T06:12:00+00:00", "ExplanationText": "The last interaction with Bran Acc was 3 days ago on the Bran Oppty. ", "CreatedBy": "FUSION_APPS_CRM_ESS_APPID", "RecordFacts": [ { "LastTouchedObjectId": "300100543278089", "TouchedRecordCount": "0", "LastTouchedSourceRecordName": null, "LastTouchedDateTime": "2021-09-03T06:16:36+00:00", "LastTouchedRecordType": null, "LastTouchedSourceObjectType": null, "DaysSinceLastTouched": "3", "LastTouchedObjectType": "opportunity", "InsightSubTypeCode": "ACCOUNT_SALES_CYCLE_ACCOUNT_ENGAGEMENT_LEVEL", "LastTouchedRecordName": "Bran Oppty", "items": [], "AccountName": "Bran Acc", "SalesCycle": "2" } ], "ObjectId": 300100543323833 } ], "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/engagementLevel", "rel": "self" } ] }