Skip to content
Developer home
X3

Example GraphQL queries for Time Entries

  Less than to read

Time entry for specific employee codes

{
  sage {
    x3ProjectManagement {
      timeEntryLine(filter: "{ employee: {user :{ code: { $in: ['PJCMO', 'PJLLO'] } } }} ") {
        edges {
          node {
            employee {
              user {
                code
              }
            }
            lineNumber
            date
            timeSpent
            isBillable
            origin
            task {
              project {
                id
              }
              code
            }
            operation {
              longDescription {
                value
              }
              task {
                project {
                  id
                }
                code
              }
            }
            firstOperationSplit
            assignmentLine
            budget {
              code
            }
            taskLink {
              project {
                id
              }
            }
            budgetLink {
              project {
                id
              }
            }
            projectCostType {
              code
            }
            projectLaborRate
            rateType
          }
        }
      }
    }
  }
}

Try it on our demo endpoint

Time entry creation example (not executable on the read-only demo enpoint)

COMING SOON