Reporting tasks

Reporting task events notify you about the execution of scheduled report generation and delivery workflows, helping you track report distribution activity.

These events are available for consumption via:

Reporting task executed

Published when an individual recipient or filter group execution of a reporting task completes. Multiple events can be published for the same reporting task run, sharing the same sharingTaskExecutionId. The payload contains reporting task information, rather than the result of the individual execution. Events may not be emitted for all failed executions.

Payload

object
  • id string
    Required

    Identifies the event.

  • time string

    Timestamp of when the occurrence happened. Must adhere to RFC 3339.

  • type string
    Required

    The unique identifier for the event type.

  • source string
    Required

    Identifies the context in which an event happened.

  • specversion string
    Required

    The version of the CloudEvents specification which the event uses.

  • datacontenttype string

    Content type of the data value. Must adhere to RFC 2046 format.

  • userid string

    The unique identifier for the user triggering the event.

  • authtype string

    The type of principal that triggered the occurrence.

  • tenantid string
    Required

    The unique identifier for the tenant related to the event.

  • authclaims string

    A JSON string representing claims of the principal that triggered the event.

  • tracestate string

    A comma-delimited list of key-value pairs.

  • traceparent string

    Contains a version, trace ID, span ID, and trace options.

  • data object

    Contains the event-specific attributes of the payload.

    Show data properties
    • id string
      Required

      The identifier of the reporting task. Has the same value as resourceId.

    • name string
      Required

      The name of the reporting task.

    • appId string
      Required

      The identifier of the app.

    • error string

      Currently empty for reporting task events.

    • expiry string

      The expiration date.

    • status string
      Required

      The status of the reporting task. This does not necessarily represent the outcome of an individual execution.

    • enabled boolean
      Required

      Indicates whether the reporting task is enabled, both by the user and by the system.

    • ownerId string
      Required

      The identifier of the reporting task owner.

    • spaceId string

      The identifier of the space.

    • traceId string

      The identifier used to trace the reporting task execution processing.

    • creatorId string
      Required

      The identifier of the user who created the reporting task.

    • thumbnail string
      Required

      The link to the thumbnail image.

    • resourceId string
      Required

      The resource identifier of the reporting task.

    • transports array
      Required

      The transport channels of the reporting task, for example email and sharepoint. When hassectionaccess is true, sharepoint is omitted from this list. Use distributionchannels for the channels as configured on the task.

    • workflowId string
      Required

      Currently empty for reporting task events.

    • createdDate string
      Required

      The date when the reporting task was created.

    • description string
      Required

      The description of the reporting task.

    • insightLink string
      Required

      An insight link to open the app from the email.

    • typeOfSpace string

      The type of space.

    • resourceLink string
      Required

      Currently empty for reporting task events.

    • resourceType string
      Required

      The resource type of the reporting task.

    • sharingTaskType string
      Required

      The type of sharing task.

    • hassectionaccess boolean
      Required

      Whether the associated app has section access enabled.

    • sharingTaskOwnerId string
      Required

      The identifier of the sharing task owner.

    • distributionchannels array
      Required

      The transport channels as configured on the reporting task, for example email and sharepoint. Unlike transports, this list still includes sharepoint when hassectionaccess is true.

    • sharingTaskExecutionId string

      The identifier of the sharing task execution, which covers the whole run of the reporting task. In reporting-task.executed, several events can carry the same value, for example one for each recipient or filter group execution.

    • reportingServiceEventId string
      Required

      The identifier of the reporting service event, when available.

com.qlik.reporting-task.executed

Example payload of the "Reporting task executed" event

{
"id": "A234-1234-1234",
"time": "2025-01-15T10:43:17Z",
"type": "com.qlik.reporting-task.executed",
"source": "com.qlik/my-service",
"specversion": "1.0",
"datacontenttype": "application/json",
"userid": "VZhiEfgW2bLd7HgR-jjzAh6VnicipweT",
"authtype": "User",
"tenantid": "VZhiEfgW2bLd7HgR-jjzAh6VnicipweT",
"authclaims": "{\n \"sub\": \"VZhiEfgW2bLd7HgR-jjzAh6VnicipweT\",\n \"email\": \"user@example.com\",\n \"roles\": [\"admin\", \"editor\"]\n}\n",
"tracestate": "rojo=00f067aa0ba902b7,congo=t61rcWkgMzE",
"traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01",
"data": {
"id": "64b6d2e7a9f211331271421e",
"name": "test",
"appId": "9c6b39c8-4624-4b2c-8c7b-bb91b919a421",
"error": "string",
"expiry": "",
"status": "VALID",
"enabled": true,
"ownerId": "63f622472ef44d955d3442a2",
"spaceId": "63f622472ef44d955d3442a2",
"traceId": "64b6d2e7a9f211331271421e",
"creatorId": "63f622472ef44d955d3442a2",
"thumbnail": "/api/v1/sharing-tasks/64b6d2e7a9f211331271421e/executions/latest/files/",
"resourceId": "64b6d2e7a9f211331271421e",
"transports": [
"email"
],
"workflowId": "string",
"createdDate": "2023-07-18T17:59:03Z",
"description": "Weekly sales report for the EMEA region",
"insightLink": "string",
"typeOfSpace": "managed",
"resourceLink": "string",
"resourceType": "reporting-task",
"sharingTaskType": "template-sharing",
"hassectionaccess": true,
"sharingTaskOwnerId": "63f622472ef44d955d3442a2",
"distributionchannels": [
"email",
"sharepoint"
],
"sharingTaskExecutionId": "64b6d2e7a9f211331271421e",
"reportingServiceEventId": "64b6d2e7a9f211331271421e"
}
}

Reporting task summary created

Published when a summary is generated for a reporting task execution. Includes task metadata and execution statistics. Use this to track reporting outcomes.

Payload

object
  • id string
    Required

    Identifies the event.

  • time string

    Timestamp of when the occurrence happened. Must adhere to RFC 3339.

  • type string
    Required

    The unique identifier for the event type.

  • source string
    Required

    Identifies the context in which an event happened.

  • specversion string
    Required

    The version of the CloudEvents specification which the event uses.

  • datacontenttype string

    Content type of the data value. Must adhere to RFC 2046 format.

  • userid string

    The unique identifier for the user triggering the event.

  • authtype string

    The type of principal that triggered the occurrence.

  • tenantid string
    Required

    The unique identifier for the tenant related to the event.

  • authclaims string

    A JSON string representing claims of the principal that triggered the event.

  • tracestate string

    A comma-delimited list of key-value pairs.

  • traceparent string

    Contains a version, trace ID, span ID, and trace options.

  • data object

    Contains the event-specific attributes of the payload.

    Show data properties
    • id string
      Required

      The identifier of the reporting task. Has the same value as resourceId.

    • name string
      Required

      The name of the reporting task.

    • appId string
      Required

      The identifier of the app.

    • error string

      Currently empty for reporting task events.

    • expiry string

      The expiration date.

    • status string
      Required

      The status of the reporting task. This does not necessarily represent the outcome of an individual execution.

    • enabled boolean
      Required

      Indicates whether the reporting task is enabled, both by the user and by the system.

    • ownerId string
      Required

      The identifier of the reporting task owner.

    • spaceId string

      The identifier of the space.

    • traceId string

      The identifier used for tracing the reporting task summary event.

    • creatorId string
      Required

      The identifier of the user who created the reporting task.

    • thumbnail string
      Required

      The link to the thumbnail image.

    • resourceId string
      Required

      The resource identifier of the reporting task.

    • transports array
      Required

      The transport channels of the reporting task, for example email and sharepoint. When hassectionaccess is true, sharepoint is omitted from this list. Use distributionchannels for the channels as configured on the task.

    • workflowId string
      Required

      Currently empty for reporting task events.

    • createdDate string
      Required

      The date when the reporting task was created.

    • description string
      Required

      The description of the reporting task.

    • insightLink string
      Required

      An insight link to open the app from the email.

    • typeOfSpace string

      The type of space.

    • resourceLink string
      Required

      Currently empty for reporting task events.

    • resourceType string
      Required

      The resource type of the reporting task.

    • sharingTaskType string
      Required

      The type of sharing task.

    • hassectionaccess boolean
      Required

      Whether the associated app has section access enabled.

    • sharingTaskOwnerId string
      Required

      The identifier of the sharing task owner.

    • distributionchannels array
      Required

      The transport channels as configured on the reporting task, for example email and sharepoint. Unlike transports, this list still includes sharepoint when hassectionaccess is true.

    • sharingTaskExecutionId string

      The identifier of the sharing task execution, which covers the whole run of the reporting task. In reporting-task.executed, several events can carry the same value, for example one for each recipient or filter group execution.

    • reportingServiceEventId string
      Required

      The identifier of the reporting service event, when available.

    • failedReports integer
      Required

      The count of reports that failed to generate.

    • taskExecutionId string
      Required

      The identifier of the reporting task execution this summary pertains to.

    • failedExecutions integer
      Required

      The count of failed executions for the reporting task.

    • successfulReports integer
      Required

      The count of successfully generated reports.

    • emailRecipientsCount integer

      The total count of sharing email recipients.

    • successfulExecutions integer
      Required

      The count of successful executions for the reporting task.

    • emailRecipientEnabledExternalCount integer

      The count of external enabled sharing email recipients.

    • emailRecipientEnabledInternalCount integer

      The count of internal enabled sharing email recipients.

    • emailRecipientDisabledExternalCount integer

      The count of external disabled sharing email recipients.

    • emailRecipientDisabledInternalCount integer

      The count of internal disabled sharing email recipients.

com.qlik.reporting-task.summary.created

Example payload of the "Reporting task summary created" event

{
"id": "A234-1234-1234",
"time": "2025-01-15T10:43:17Z",
"type": "com.qlik.reporting-task.summary.created",
"source": "com.qlik/my-service",
"specversion": "1.0",
"datacontenttype": "application/json",
"userid": "VZhiEfgW2bLd7HgR-jjzAh6VnicipweT",
"authtype": "User",
"tenantid": "VZhiEfgW2bLd7HgR-jjzAh6VnicipweT",
"authclaims": "{\n \"sub\": \"VZhiEfgW2bLd7HgR-jjzAh6VnicipweT\",\n \"email\": \"user@example.com\",\n \"roles\": [\"admin\", \"editor\"]\n}\n",
"tracestate": "rojo=00f067aa0ba902b7,congo=t61rcWkgMzE",
"traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01",
"data": {
"id": "64b6d2e7a9f211331271421e",
"name": "test",
"appId": "9c6b39c8-4624-4b2c-8c7b-bb91b919a421",
"error": "string",
"expiry": "",
"status": "VALID",
"enabled": true,
"ownerId": "63f622472ef44d955d3442a2",
"spaceId": "63f622472ef44d955d3442a2",
"traceId": "64b6d2e7a9f211331271421e",
"creatorId": "63f622472ef44d955d3442a2",
"thumbnail": "/api/v1/sharing-tasks/64b6d2e7a9f211331271421e/executions/latest/files/",
"resourceId": "64b6d2e7a9f211331271421e",
"transports": [
"email"
],
"workflowId": "string",
"createdDate": "2023-07-18T17:59:03Z",
"description": "Weekly sales report for the EMEA region",
"insightLink": "string",
"typeOfSpace": "managed",
"resourceLink": "string",
"resourceType": "reporting-task",
"sharingTaskType": "template-sharing",
"hassectionaccess": true,
"sharingTaskOwnerId": "63f622472ef44d955d3442a2",
"distributionchannels": [
"email",
"sharepoint"
],
"sharingTaskExecutionId": "64b6d2e7a9f211331271421e",
"reportingServiceEventId": "64b6d2e7a9f211331271421e",
"failedReports": 0,
"taskExecutionId": "64b6d2e7a9f211331271421e",
"failedExecutions": 0,
"successfulReports": 1,
"emailRecipientsCount": 1,
"successfulExecutions": 1,
"emailRecipientEnabledExternalCount": 1,
"emailRecipientEnabledInternalCount": 1,
"emailRecipientDisabledExternalCount": 0,
"emailRecipientDisabledInternalCount": 0
}
}