ReportingQu Query

listRecordedCosts

Topics: Costing

List recorded costs with pagination. Requires recordedcost:list permission.

Returns

RecordedCostConnection!

Arguments

first

IntOptional

Number of items from the start

last

IntOptional

Number of items from the end

after

StringOptional

Cursor to start after

before

StringOptional

Cursor to start before

Filter criteria

Sort order

Examples

Browse actual job costs

query BrowseERPJobCosts($first: Int!, $filter: RecordedCostFilterInput!, $after: String) {
  listRecordedCosts(first: $first, after: $after, filter: $filter) {
    edges {
      node {
        id jobId costCategoryId quantity unitRate totalCost currency recordedAt
        referenceType referenceId
      }
    }
    pageInfo { hasNextPage endCursor }
  }
}

Variables

{
  "first": 20,
  "filter": {
    "jobId": {
      "eq": "job_000000000080080000000000r1"
    }
  }
}
Exact field SDL
"""
List recorded costs with pagination. Requires recordedcost:list permission.
"""
listRecordedCosts(
  """Number of items from the start"""
  first: Int
  """Number of items from the end"""
  last: Int
  """Cursor to start after"""
  after: String
  """Cursor to start before"""
  before: String
  """Filter criteria"""
  filter: RecordedCostFilterInput
  """Sort order"""
  sort: [RecordedCostSortInput!]
): RecordedCostConnection! @topic(names: ["costing"]) @topic_example(names: ["erp.browse-job-costs"])

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