getCostCategoryBy
Topics: Costing
Fetch a cost category by external ID or code. Requires costcategory:read permission.
Examples
Find a configured cost category
query FindERPCostCategory($code: String!) {
getCostCategoryBy(code: $code) { id code name unit isActive }
}Variables
{
"code": "PRESS_TIME"
}Exact field SDL
"""
Fetch a cost category by external ID or code. Requires costcategory:read permission.
"""
getCostCategoryBy(
"""External system identifier"""
externalId: String
"""Cost category code"""
code: String
): CostCategoryState @topic(names: ["costing"]) @topic_example(names: ["erp.find-cost-category"])Declared on Query. Access is checked by the platform for each operation.