Get facts generated by the contact validation insight template
/crmRestApi/crmSalesIntelligenceApi/11.13.18.05/facts/contactValidation
Request
-
q: string
To identify: A CRM object record by ObjectType and ObjectId values. Example: ObjectType=opportunity;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.
object
ActivityEffectivenessFacts
-
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:
ActivityEffectivenessFactItems
The facts about the activity effectiveness of a record generated using the object and record level metrics.
array
-
Array of:
object Link
Title:
Link
The link item.
object
ActivityEffectivenessFactItems
-
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 ContactValidationFact
Title:
ContactValidationFact
The fact data about the contact validation.
object
ContactValidationFact
-
ContactsCount: string
The total number of the contacts for this record.
-
DecisionMakerCount: string
The total number of decision makers for this record.
-
InsightSubTypeCode: string
The insight sub type code.
-
ObjectAverage: string
The object level average.
object
Link
-
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 facts generated using the contact validation insight template 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/contactValidation?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": 100100300988152, "InsightTypeCode": "CONTACT_VALIDATION", "LastUpdatedBy": "SALES_ADMIN", "LastUpdateLogin": "CAE17C03962CC82FE053AC0AF50ACE73", "InsightTemplateUuid": "336d82a2-a707-4564-b618-63db01263aab", "CreationDate": "2021-09-07T06:10:55+00:00", "RecordClassificationCode": "NOT_AVAILABLE", "ObjectType": "lead", "RecordClassification": "Not available", "LastUpdateDate": "2021-09-07T06:10:55+00:00", "ExplanationText": "The Contacts Validation 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/contactValidation", "rel": "self" } ] }
cURL Command
curl -u <username:password> \ -X
https://servername.fa.us2.oraclecloud.com/crmRestApi/crmSalesIntelligenceApi/latest/facts/contactValidation?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": 100100300988153, "InsightTypeCode": "CONTACT_VALIDATION", "LastUpdatedBy": "SALES_ADMIN", "LastUpdateLogin": "CAE17C03962EC82FE053AC0AF50ACE73", "InsightTemplateUuid": "925e39d3-e19f-4acd-be76-4dd1212cf369", "CreationDate": "2021-09-07T06:11:25+00:00", "RecordClassificationCode": "NOT_AVAILABLE", "ObjectType": "opportunity", "RecordClassification": "Not available", "LastUpdateDate": "2021-09-07T06:11:25+00:00", "ExplanationText": "The Contacts Validation insight is not available for this record ", "CreatedBy": "SALES_ADMIN", "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/contactValidation", "rel": "self" } ] }