Skip to content

scheduledReports

Retrieve details of scheduled reports. If the reportId is None, return schedules of all reports. Otherwise, return the schedules of reportId.

Arguments

Argument Type Description
first Int Returns the first n elements from the list.
after String Returns the elements in the list that occur after the specified cursor.
last Int Returns the last n elements from the list.
before String Returns the elements in the list that occur before the specified cursor.
filter ScheduledReportFilterInput Filter report schedules.

Returns

ScheduledReportConnection!

Sample

query {
  scheduledReports(first: 10) {
    nodes {
      attachmentTypes
      createdAt
      dailyTime
      id
      lastUpdatedAt
      monthlyDate
      monthlyTime
      recipientEmails
      reportId
      showChartsInEmailBody
      timeZone
      title
      weeklyDays
      weeklyTime
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
{}
{
  "data": {
    "scheduledReports": {
      "nodes": [
        [
          {
            "attachmentTypes": [
              "REPORT_ATTACHMENT_TYPE_CSV"
            ],
            "createdAt": "2024-01-01T00:00:00.000Z",
            "dailyTime": "example-string",
            "id": 0,
            "lastUpdatedAt": "2024-01-01T00:00:00.000Z",
            "monthlyDate": 0
          }
        ]
      ],
      "pageInfo": {
        "endCursor": "example-string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example-string"
      }
    }
  }
}