Function getSharingTasks

  • Retrieves all sharing tasks accessible to the user. Users assigned the TenantAdmin or AnalyticsAdmin role can view all tasks.

    Parameters

    • query: {
          appid?: string;
          excludeDeleting?: boolean;
          limit?: number;
          next?: string;
          offset?: number;
          owner?: string;
          ownername?: string;
          page?: string;
          prev?: string;
          role?: ("owner" | "recipient")[];
          sort?: (
              | "status"
              | "type"
              | "name"
              | "sent"
              | "+status"
              | "-status"
              | "-name"
              | "+name"
              | "scheduled"
              | "enabled"
              | "-datecreated"
              | "datecreated"
              | "+datecreated"
              | "-ownername"
              | "ownername"
              | "+ownername"
              | "-enabled"
              | "+enabled"
              | "+type"
              | "-type"
              | "-sent"
              | "+sent"
              | "-scheduled"
              | "+scheduled"
              | "-appname"
              | "appname"
              | "+appname"
              | "-appid"
              | "appid"
              | "+appid"
          )[];
          templateId?: string[];
          type?: (
              | "chart-monitoring"
              | "chart-sharing"
              | "sheet-sharing"
              | "template-sharing"
          )[];
      }

      an object with query parameters

      • Optionalappid?: string

        the filter by sharing task resource app id. TenantAdmin users may omit this parameter to list all sharing-tasks in the tenant.

      • OptionalexcludeDeleting?: boolean
      • Optionallimit?: number
      • Optionalnext?: string

        The cursor to the next page of data. Only one of next or previous may be specified.

      • Optionaloffset?: number
      • Optionalowner?: string
      • Optionalownername?: string
      • Optionalpage?: string
      • Optionalprev?: string

        The cursor to the previous page of data. Only one of next or previous may be specified.

      • Optionalrole?: ("owner" | "recipient")[]
      • Optionalsort?: (
            | "status"
            | "type"
            | "name"
            | "sent"
            | "+status"
            | "-status"
            | "-name"
            | "+name"
            | "scheduled"
            | "enabled"
            | "-datecreated"
            | "datecreated"
            | "+datecreated"
            | "-ownername"
            | "ownername"
            | "+ownername"
            | "-enabled"
            | "+enabled"
            | "+type"
            | "-type"
            | "-sent"
            | "+sent"
            | "-scheduled"
            | "+scheduled"
            | "-appname"
            | "appname"
            | "+appname"
            | "-appid"
            | "appid"
            | "+appid"
        )[]
      • OptionaltemplateId?: string[]
      • Optionaltype?: ("chart-monitoring" | "chart-sharing" | "sheet-sharing" | "template-sharing")[]
    • Optionaloptions: ApiCallOptions

    Returns Promise<GetSharingTasksHttpResponse>

    GetSharingTasksHttpError