OBJECT

AccountKPIEntity

Recorded KPI event of an account, such as its creation, archiving or the first and last email sent, used in KPI reports.

link GraphQL Schema definition

  • type AccountKPIEntity {
  • # True when the record is protected against deletion because it must always exist
  • # in the space. Deleting a record that is not protected can still fail on other
  • # checks. Read-only.
  • isDeleteProtected: Boolean!
  • # Unique identifier of entity.
  • id: ID!
  • # Specifies if the entity is considered deleted.
  • isDeleted: Boolean
  • # Last modification time.
  • modified: DateTime
  • # Creation time.
  • created: DateTime
  • # Account this KPI event relates to.
  • account: AccountEntity
  • # User who triggered the KPI event (e.g. created or archived the account, sent the
  • # first email).
  • client: ClientEntity
  • # Account owner at the time the KPI event occurred.
  • owner: ClientEntity
  • # Sales unit the triggering user belonged to at the time of the event.
  • unit: SalesUnitEntity
  • # Id of the account this KPI event relates to.
  • accountId: ID!
  • # Application context in which the KPI event was triggered (e.g. browser,
  • # automation, third-party integration).
  • applicationId: ID
  • # Id of the user who triggered the event.
  • clientId: ID
  • # KPI metric this event represents: CreateAccount, FirstEmailSent, LastEmailSent,
  • # Archive or LastModified.
  • kpi: AccountKpiEnum!
  • # Id of the account owner at the time of the event.
  • ownerId: ID!
  • # Id of the sales unit.
  • unitId: ID
  • # Revision when entity was lastly changed.
  • revision: Int
  • # Permissions the current user has on this record, out of the requested ones.
  • #
  • # Arguments
  • # permissions: Permissions to check; the result lists those the
  • # current user has.
  • instancePermissions(permissions: [EntityPermsEnum!]!): [EntityPermsEnum!]!
  • }