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

Parameter

Data Type

Description

EventName

string

The name of the specific event.

FrontOfficeTenantId

integer

Front office ID that indicates the tenant (client) for which the request is being made.

Resource

string

Event specific information:

CompanyId(integer): The identifier for the company.
DepartmentId(integer): The identifier for the department.
CorrelationId(string): Unique identifier for this event.

ResourceModelType

string

.NET class name for the Resource.

CorrelationId

string

Unique 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.