POST api/AnalyticEvents

Creates a new analytic event in CRM and returns the object.

Request Information

URI Parameters

None.

Body Parameters

Event to create.

CrmAnalyticEvent
NameDescriptionTypeAdditional information
Reference

Used to reference the entity in CRM.

EntityReference

Optional

SystemDate

Current system date of the client that created this object.

date

Optional

EventTime

Date and time the event occurred.

date

Required

EventType

Type of event that occurred.

string

Required

RegardingObject

Entity the event is in regard to.

EntityReference

Required

EventSource

Source of the captured event.

string

Required

Latitude

Latitude of where the event occurred.

decimal number

Optional

Longitude

Longitude of where the event occurred.

decimal number

Optional

Request Formats

application/json, text/json

Sample:
{
  "Reference": {
    "Id": "5f7b3a0e-a58c-4c94-9268-e6f2ef427bda",
    "LogicalName": "sample string 2",
    "Name": "sample string 3"
  },
  "SystemDate": "2025-05-23T18:02:06.2321628-05:00",
  "EventTime": "2025-05-23T18:02:06.2321628-05:00",
  "EventType": "sample string 3",
  "RegardingObject": {
    "Id": "5f7b3a0e-a58c-4c94-9268-e6f2ef427bda",
    "LogicalName": "sample string 2",
    "Name": "sample string 3"
  },
  "EventSource": "sample string 4",
  "Latitude": 1.1,
  "Longitude": 1.1
}

Response Information

Resource Description

Returns the newly created event.

CrmAnalyticEvent
NameDescriptionTypeAdditional information
Reference

Used to reference the entity in CRM.

EntityReference

Optional

SystemDate

Current system date of the client that created this object.

date

Optional

EventTime

Date and time the event occurred.

date

Required

EventType

Type of event that occurred.

string

Required

RegardingObject

Entity the event is in regard to.

EntityReference

Required

EventSource

Source of the captured event.

string

Required

Latitude

Latitude of where the event occurred.

decimal number

Optional

Longitude

Longitude of where the event occurred.

decimal number

Optional

Response Formats

application/json, text/json

Sample:
{
  "Reference": {
    "Id": "19614b46-75b2-4b44-b186-e387de9dad71",
    "LogicalName": "sample string 2",
    "Name": "sample string 3"
  },
  "SystemDate": "2025-05-23T18:02:06.2321628-05:00",
  "EventTime": "2025-05-23T18:02:06.2321628-05:00",
  "EventType": "sample string 3",
  "RegardingObject": {
    "Id": "19614b46-75b2-4b44-b186-e387de9dad71",
    "LogicalName": "sample string 2",
    "Name": "sample string 3"
  },
  "EventSource": "sample string 4",
  "Latitude": 1.1,
  "Longitude": 1.1
}