Less Annoying CRM logo Less Annoying CRM LACRM
Core API Functions

Events

Events are used to schedule times on your calendar. They work pretty much like any other calendar (e.g. Outlook or Google Calendar) except that they can be linked directly to contacts/companies in your CRM.

Unlike tasks, events are automatically considered to be "completed" whenever they end. Because of this, events are best for things that have specific start and end times whereas tasks are better for things you will handle sometime during the day, but that aren't specifically schedule.

Create an event

This function will create an event on your calendar or the calendar of another user you have permission to edit.

How to call this function
Function name
CreateEvent
Parameters
Name Text Required

The name of the event. This is displayed with the event on the calendar.

StartDate DateTime Required

The start date and time of the event. For all-day events, the time will be ignored. If included, the timezone set for the StartDate will be used as the timezone for the event.

EndDate DateTime Required

The end date and time of the event. For all-day events, the time will be ignored.

IsAllDay Bool Default: false

Whether or not this is an all day event.

Location Text

The location of the event.

Description Text

A description of the event.

CalendarId Uid

The calendar that this event will be attached to. Only pass in if you are attending the event; if no calendar is passed in, we will default to your primary calendar.

Attendees Array of objects Default: []

An array of attendees with their Id, their corresponding attendance status and IsUser which denotes whether the attendee is a User, otherwise the attendee is a contact.

Each item in the array should be an object with the following fields:
IsUser Bool

Is true if this attendee is a user, else attendee is a contact

AttendeeId Uid

UserId or ContactId of this attendee

AttendanceStatus Enum
Valid options: IsAttending, Maybe, NotAttending,

Whether this contact is attending the event.

IsRecurring Bool Default: false

Whether or not this is a repeating (recurring) event on your calendar. If true, a RecurrenceRule will also need to be specified.

RecurrenceRule Text Default: NULL

The rule to determine how frequently this event recurs. This is required if you are creating a recurring event. For more information on recurrence rules, click here.

EndRecurrenceRule DateTime

The last date this recurring event should appear on your calendar. Not to be confused with EndDate which sets when a single instance of an event will end.

Response
{
"EventId": "3946718127072568573980571833785"
}

Edit an event

This function will update an existing event.

How to call this function
Function name
EditEvent
Parameters
EventId Uid Required

The id of the event to update.

Name Text

The name of the event. This is displayed with the event on the calendar.

StartDate DateTime

The start date and time of the event. For all-day events, the time will be ignored.

EndDate DateTime

The end date and time of the event. For all-day events, the time will be ignored.

IsAllDay Bool

Whether or not this is an all day event.

Location Text

The location of the event.

Description Text

A description of the event.

CalendarId Uid

The calendar that this event will be attached to.

Attendees Array of objects

An array of attendees with their Id, their corresponding attendance status and IsUser which denotes whether the attendee is a User, otherwise the attendee is a contact.

Each item in the array should be an object with the following fields:
IsUser Bool

Is true if this attendee is a user, else attendee is a contact

AttendeeId Uid

UserId or ContactId of this attendee

AttendanceStatus Enum
Valid options: IsAttending, Maybe, NotAttending,

Whether this contact is attending the event.

RecurrenceRule Text

The rule to determine how frequently this event recurs. This is required if you are creating a recurring event. For more information on recurrence rules, click here.

EndRecurrenceRule DateTime

The last date this recurring event should appear on your calendar. Not to be confused with EndDate which sets when a single instance of an event will end.

Response
This function doesn't return anything. If there's no error message returned, that means the call was completed successfully.

Delete an event

This function will delete an event from your calendar, as well as the calendars of any other attending user. If you want to remove yourself from an event, use EditEvent instead.

How to call this function
Function name
DeleteEvent
Parameters
EventId Uid Required

The Id of the event you want to delete.

Response
This function doesn't return anything. If there's no error message returned, that means the call was completed successfully.

Get an event

This function gets a single event from the calendar based on the Id of the event. If you don't already know the EventId, you can find events using GetEvents or GetEventsAttachedToContact.

How to call this function
Function name
GetEvent
Parameters
EventId Uid Required

The Id of the event you want to get.

Response
{
"EventId": "3946718127086403632035854828752",
"Name": "",
"StartDate": "2024-03-28T01:55:47-07:00",
"EndDate": "2024-03-28T01:55:47-07:00",
"Location": "",
"Description": "",
"IsAllDay": false,
"IsRecurring": false,
"RecurrenceEventId": "3946718127086403632035855070939",
"RecurrenceRule": "",
"EndRecurrenceDate": "2024-03-28T01:55:47-07:00",
"SeriesNumber": 10,
"DateCreated": "2024-03-28T01:55:47-07:00",
"DateUpdated": "2024-03-28T01:55:47-07:00",
"ContactIds": [
"3946718127086403632035854560912",
"3946718127086403632035855256093",
"3946718127086403632035853926662"
],
"UserIds": [
"3946718127086403632035855461493",
"3946718127088709475045068450962",
"3946718127088709475045069178877"
],
"Attendees": [
{
"IsUser": false,
"AttendeeId": "3946718127088709475045068486435",
"AttendanceStatus": ""
},
{...},
{...}
]
"CalendarId": "3946718127088709475045067786079",
"ContactMetaData": [
{
"Name": "John Doe",
"AssignedTo": "123456"
},
{...},
{...}
]
"UserMetaData": [
{
"FirstName": "Your",
"LastName": "Name"
},
{...},
{...}
]
"CalendarMetaData": {
"Name": "Primary calendar"
}
}

List all events

This function will get all events between a date range; will return all visible events by default, but can be filtered by calendar, contact, or user.

How to call this function
Function name
GetEvents
Parameters
SortDirection Enum Default: Ascending
Valid options: Ascending, Descending

Whether the results should be sorted in ascending or descending order.

StartDate DateTime Default: NULL

The start date (inclusive) of the range of events you want to retrieve.

EndDate DateTime Default: NULL

The end date (inclusive) of the range of events you want to retrieve.

UserFilter Array of Uids Default: []

If you'd like to only see events assigned to specific users, pass their UserIds into this field and we'll filter the results to only show those users' events.

CalendarFilter Array of Uids Default: []

If you specify this parameter, only events matching the given CalendarIds will be returned. Only works for your own calendars.

ContactId Uid Default: NULL

If you specify this parameter, only events attached to this contact will be returned. Alternatively, you can call GetEventsAttachedToContact to get the same results.

MaxNumberOfResults Number Default: 500

How many results should be returned from a single API call? The max value is 10,000. If you need to return more results, call this API function again, but increment the Page parameter.

Page Number Default: 1

If there are more results than MaxNumberOfResults, you can call this function again with an incremented Page value to get the next page of results. For example, if there are 700 results, but you're only requesting 500 at a time, you could call this function with Page=2 to get the remaining 200 results.

Response
{
"HasMoreResults": false,
"Results": [
{
"EventId": "3946718127097932847081923569219",
"Name": "",
"StartDate": "2024-03-28T01:55:47-07:00",
"EndDate": "2024-03-28T01:55:47-07:00",
"Location": "",
"Description": "",
"IsAllDay": false,
"IsRecurring": false,
"RecurrenceEventId": "3946718127100238690091137114427",
"RecurrenceRule": "",
"EndRecurrenceDate": "2024-03-28T01:55:47-07:00",
"SeriesNumber": 10,
"DateCreated": "2024-03-28T01:55:47-07:00",
"DateUpdated": "2024-03-28T01:55:47-07:00",
"ContactIds": [
"3946718127100238690091137824887",
"3946718127100238690091136027340",
"3946718127100238690091137941770"
],
"UserIds": [
"3946718127100238690091137410880",
"3946718127100238690091136219087",
"3946718127100238690091136566768"
],
"Attendees": [
{
"IsUser": false,
"AttendeeId": "3946718127102544533100350154987",
"AttendanceStatus": ""
},
{...},
{...}
]
"CalendarId": "3946718127102544533100349895680",
"ContactMetaData": [
{
"Name": "John Doe",
"AssignedTo": "123456"
},
{...},
{...}
]
"UserMetaData": [
{
"FirstName": "Your",
"LastName": "Name"
},
{...},
{...}
]
"CalendarMetaData": {
"Name": "Primary calendar"
}
},
{...},
{...}
]
}

Get contact events

Returns all events for a contact.

How to call this function
Function name
GetEventsAttachedToContact
Parameters
ContactId Uid Required

The contact to get events for.

MaxNumberOfResults Number Default: 500

How many results should be returned from a single API call? The max value is 10,000. If you need to return more results, call this API function again, but increment the Page parameter.

Page Number Default: 1

If there are more results than MaxNumberOfResults, you can call this function again with an incremented Page value to get the next page of results. For example, if there are 700 results, but you're only requesting 500 at a time, you could call this function with Page=2 to get the remaining 200 results.

Response
{
"HasMoreResults": false,
"Results": [
{
"EventId": "3946718127111767905137204935878",
"Name": "",
"StartDate": "2024-03-28T01:55:47-07:00",
"EndDate": "2024-03-28T01:55:47-07:00",
"Location": "",
"Description": "",
"IsAllDay": false,
"IsRecurring": false,
"RecurrenceEventId": "3946718127111767905137206273994",
"RecurrenceRule": "",
"EndRecurrenceDate": "2024-03-28T01:55:47-07:00",
"SeriesNumber": 10,
"DateCreated": "2024-03-28T01:55:47-07:00",
"DateUpdated": "2024-03-28T01:55:47-07:00",
"ContactIds": [
"3946718127114073748146418738719",
"3946718127114073748146418248112",
"3946718127114073748146418667850"
],
"UserIds": [
"3946718127114073748146420171786",
"3946718127114073748146419845813",
"3946718127114073748146419076304"
],
"Attendees": [
{
"IsUser": false,
"AttendeeId": "3946718127114073748146419652046",
"AttendanceStatus": ""
},
{...},
{...}
]
"CalendarId": "3946718127116379591155632680279",
"ContactMetaData": [
{
"Name": "John Doe",
"AssignedTo": "123456"
},
{...},
{...}
]
"UserMetaData": [
{
"FirstName": "Your",
"LastName": "Name"
},
{...},
{...}
]
"CalendarMetaData": {
"Name": "Primary calendar"
}
},
{...},
{...}
]
}