company_department_created

Overview

The company_department_created event is sent when a new company department has been created, serving as both a department creation event and a company creation event. There is no separate event dedicated to the company creation.

Event Parameters

ParameterData TypeDescription
EventNamestringThe name of the specific event.
FrontOfficeTenantIdintegerFront office ID that indicates the tenant (client) for which the request is being made.
ResourcestringEvent specific information:

CompanyId(integer): The identifier for the company.
DepartmentId(integer): The identifier for the department.
CorrelationId(string): Unique identifier for this event.
ResourceModelTypestring.NET class name for the Resource.
CorrelationIdstringUnique identifier for this event.

Sample Event

{
  "EventName": "company_department_created",
  "FrontOfficeTenantId": 6,
  "Resource": "{\"CompanyId\":250271,\"DepartmentId\":440766,\"CorrelationId\":\"faaf9b82-01b5-4d9d-ba55-290acf61e296\"}",
  "ResourceModelType": "Avionte.Commons.CompasEventModel.ResourceModel.CompanyDepartmentResourceModel, Avionte.Commons.CompasEventModel, Version=1.2.4.0, Culture=neutral, PublicKeyToken=null",
  "CorrelationId": "faaf9b82-01b5-4d9d-ba55-290acf61e296"
}

Associated Endpoint

For details about the department, check the Get a Department endpoint.