Sales & CRMQu Query

getCostCenterBy

Topics: Commerce

Fetch a cost center by external ID or code. Requires costcenter:read permission.

Returns

CostCenterState

Arguments

External system identifier

code

StringOptional

Cost center code

Exact field SDL
"""
Fetch a cost center by external ID or code. Requires costcenter:read permission.
"""
getCostCenterBy(
  """External system identifier"""
  externalId: String
  """Cost center code"""
  code: String
): CostCenterState @topic(names: ["commerce"])

Declared on Query. Access is checked by the platform for each operation.