• Tools
Tools
  • Tools
loading...
No Results
  • ActiveCampaign
  • AirDroid Business
    • Index
    • Batch Resolve Device and Group IDs by Name
    • Batch Resolve Device IDs by Name
    • Batch Resolve Group IDs by Name
    • Batch Get Devices by Device or Group IDs
    • Clear app data and cache
    • Create a group
    • Delete groups
    • Delete Provisioning Templates
    • Disable lost mode
    • Error codes
    • Enable lost mode
    • Field reference
    • Get average screen time
    • Get account activities
    • Get a Configuration
    • Get a device by name
    • Get a device app by name
    • Get a group
    • Get a group id by group name
    • Get a Provisioning Template
    • Get an activity log
    • Get all devices
    • Get all device apps
    • Get all devices with filter
    • Get Config File Deployment Status
    • Get device info push
    • Get device location report
    • Get device network connection history
    • Get device application usage duration
    • Get device application report
    • Get device online status report
    • Get device remote access report
    • Get data usage overview and trends
    • Get tag ids by tag names
    • Get top 10 apps by usage duration
    • Get top 10 data usage apps
    • Generate Device Owner Enrollment QR for Template
    • List Groups
    • List Policy and Kiosk Configurations
    • List Provisioning Templates
    • Lock a device
    • Move devices to a group
    • Open app to foreground
    • Power off a device
    • Reboot device
    • Remote operation
    • Search Groups
    • Set tags
    • Turn off device screen
    • Unenroll a device
    • Update a device name
    • Update a device remark
    • Update a group name
    • Update a group remark
    • Retry Organization App Library Distribution
    • Search Organization App Library Applications
    • Batch Set Device Tags
    • Search Batch Operation Activity Logs
    • Search File Batch Delete Results
    • Search File Batch Send Results
    • Batch Delete Files
    • Batch Send Files
    • Batch Clear App Data and Cache
    • Move Groups to a Group
    • List Organization App Library Distribution Status
    • Get Application Uninstall Result
    • Get Device Daemon Permissions
    • Create Tags
    • Uninstall Application
    • List Organization App Library Applications
    • Delete Tag
    • Batch Upload Qiniu Files
    • Search File Batch Upload Results
    • Retry Batch Qiniu File Upload
  • Adalo
  • Appstore
  • Asana
  • AWS Lambda
  • AWS-S3
  • BambooHR
  • Bitbucket
  • Brevo
  • Clockify
  • Coda
  • ConvertKit
  • DingTalk
  • Discord
  • Discourse
  • Dropbox
  • Elasticsearch
  • Elastic Security
  • FeiShu
  • Firecrawl
  • Freshdesk
  • Freshservice
  • Freshworks CRM
  • Gerrit
  • Github
  • Gitlab
  • Google Ads
  • Google Analytics
  • Google Calendar
  • Google Developer
  • Google Docs
  • Google Drive
  • Google Gmail
  • Google Sheets
  • Grafana
  • Hacker News
  • HaloPSA
  • Harvest
  • Help Scout
  • Hubspot
  • Intercom
  • Jenkins
  • Jira
  • Kafka
  • Lemlist
  • Linear
  • Magento
  • MailChimp
  • Mautic
  • Metabase
  • Microsoft Excel
  • Microsoft OneDrive
  • Microsoft Outlook
  • Microsoft Sharepoint
  • Microsoft Teams
  • Microsoft To Do
  • monday.com
  • MySQL
  • Nextcloud
  • Notion
  • Odoo
  • Okta
  • OpenAI
  • Ortto
  • Paddle
  • PayPal
  • Pipedrive
  • PostgreSQL
  • PostHog
  • Qdrant
  • QuickBooks
  • Redis
  • Segment
  • SendGrid
  • ServiceNow
  • Shopify
  • Slack
  • Splunk
  • Spotify
  • Strapi
  • Stripe
  • System Tools
    • Code
    • CSV
    • Crypto
    • Data Shaping
    • Date & Time
    • Delay
    • Documents
    • QRCode
    • Search&Crawl
    • Text
    • Xml
  • Teambition
  • Telegram
  • Todoist
  • Trello
  • Twilio
  • Webflow
  • Wekan
  • Wikipedia
  • WooCommerce
  • WordPress
  • X
  • YouTube
  • Zammad
  • Zendesk
  • Zoho CRM
  • Zoom
  • Zulip
Home > Tools > AirDroid Business

Search Batch Operation Activity Logs

Tool Name: airdroid_business_batch_operation_activity_log_search

Risk Level: 🟢 Low Risk

Execution Mode: ⚡ Synchronous

Category: Reports & Analytics

Quick Start (Copy & Use)

In one sentence: Poll per-device execution status for any batch device-operation task using one OperationLogId.

What you need: OperationLogId from the batch command tool that started the job (e.g. Batch Clear App Data and Cache or other batch tools that return it; not batch file uploads)

Success criteria: StatusCode == 200 and ErrorMessage is empty; check Summary and ActivityLogs[].Progress

What to do next: Repeat until Summary.Executing == 0, or filter failed devices via Filter.progress

Minimal request example:

{
  "OperationLogId": 1770854462319857000
}

Minimal response example:

{
  "BatchOperation": {
    "OperationLogId": "1770854462319857000",
    "Action": "app_clear",
    "DeviceNum": 2,
    "CreatedAt": "2026-07-21 14:30:00"
  },
  "ActivityLogs": [
    {
      "DeviceId": "fa6edcff65ab444e8b5e0eb08df4175d",
      "DeviceName": "Office Tablet A",
      "Pid": "1770854462319857001",
      "Action": "app_clear",
      "Progress": "Success",
      "FailReason": ""
    }
  ],
  "Summary": {
    "Total": 2,
    "Executing": 0,
    "Success": 2,
    "Failure": 0,
    "Overridden": 0
  },
  "Pagination": {
    "total": 2,
    "page_size": 50,
    "page_index": 1,
    "last_page": 1
  },
  "StatusCode": 200,
  "ErrorMessage": ""
}

Recipes (Common Recipes)

Recipe 1: Poll After Batch Clear

Scenario: Track all devices after calling Batch Clear App Data and Cache

{
  "OperationLogId": 1770854462319857000
}

Polling strategy:

  1. Call this tool with the OperationLogId from the batch clear response
  2. If Summary.Executing > 0, call again until the batch reaches a terminal state
  3. Stop when Summary.Executing == 0
  4. Inspect ActivityLogs where Progress == "Failure" and read FailReason

Recipe 2: List Only Failed Devices

Scenario: After polling, focus on devices that failed

{
  "OperationLogId": 1770854462319857000,
  "Filter": {
    "progress": {
      "eq": "Failure"
    }
  }
}

Recipe 3: Paginate Large Batches

Scenario: More than 50 devices in one batch operation

{
  "OperationLogId": 1770854462319857000,
  "PageIndex": 2,
  "PageSize": 50
}

1. Overview

1.1 Description

This tool queries per-device activity logs for a batch operation identified by OperationLogId. Use it after batch daemon write tools (such as Batch Clear App Data and Cache) to monitor execution progress across all targeted devices in one call.

Each row in ActivityLogs uses the same field semantics as Get an Activity Log (DeviceId, Pid, Progress, FailReason, etc.).

1.2 When to Use

  • Poll batch clear results: After Batch Clear App Data and Cache, track all devices with one OperationLogId
  • Aggregate status: Use Summary to see how many devices are still Executing vs terminal states
  • Filter failures: Use Filter.progress to list only failed devices

Do not use when:

  • You have a single device and a single Pid → use Get an Activity Log
  • The batch write has not been submitted yet → call the batch write tool first

1.3 Execution Mode & Response

This is a synchronous read that returns the current activity log snapshot immediately.

  • Return value: BatchOperation, ActivityLogs, Summary, Pagination
  • Key fields: Summary.Executing, ActivityLogs[].Progress, ActivityLogs[].FailReason

1.4 Prerequisites

Condition Description How to Verify
Valid OperationLogId Must come from a batch write tool response From Batch Clear App Data and Cache → OperationLogId
Activity log permission OAuth credential needs device activity log read access 403 on HTTP layer if missing

1.5 Prerequisite Tools

Dependency Tool Purpose Necessity
Batch Clear App Data and Cache Provides OperationLogId 🔴 Required for batch clear polling

2. Inputs

2.1 Parameter List

Parameter Type Required Default Description
OperationLogId number ✅ Yes - Batch operation log ID from a batch write tool
PageIndex number ❌ No 1 Page number (1-based); zero, negative, decimal, and other invalid values return StatusCode -1
PageSize number ❌ No 50 Records per page (1–100); zero, negative, decimal, and values above 100 return StatusCode -1
Filter object ❌ No - Optional filter on device_id, device_name, progress

2.2 Parameter Details

`OperationLogId`

Batch operation log ID returned by a batch write tool.

  • Type: number (integer)
  • How to obtain: From Batch Clear App Data and Cache response → OperationLogId
  • Example:
    1770854462319857000
    

`PageIndex`

Page number for paginated results.

  • Type: number
  • Default: 1 only when omitted / None
  • Validation: Must be a whole number starting at 1; zero, negative, decimal, non-numeric text, and other invalid values return StatusCode -1
  • Example: 1

`PageSize`

Number of activity log records per page.

  • Type: number
  • Default: 50 only when omitted / None
  • Validation: Must be a whole number from 1 through 100; zero, negative, decimal, non-numeric text, and other invalid values return StatusCode -1
  • Maximum: 100; larger values return StatusCode -1 with an error stating that the maximum was exceeded

`Filter`

Optional filter object. Multiple top-level fields are combined with AND.

Supported fields:

  • progress (eq, in): Executing, Success, Failure, Overridden (English values only)
  • device_id (eq, like, in): device unique identifier
  • device_name (eq, like, in): device display name

Example — failed devices only:

{
  "progress": {
    "eq": "Failure"
  }
}

2.3 Parameter Combination Logic

  • OperationLogId is required; pagination and filter are optional
  • Use Summary for overall progress; use ActivityLogs for per-device detail on the current page

3. Outputs

3.1 Response Examples

Success response:

{
  "BatchOperation": {
    "OperationLogId": "1770854462319857000",
    "Action": "app_clear",
    "DeviceNum": 3,
    "CreatedAt": "2026-07-21 14:30:00"
  },
  "ActivityLogs": [
    {
      "DeviceId": "fa6edcff65ab444e8b5e0eb08df4175d",
      "DeviceName": "Office Tablet A",
      "Pid": "1770854462319857001",
      "Action": "app_clear",
      "Progress": "Success",
      "FailReason": ""
    }
  ],
  "Summary": {
    "Total": 3,
    "Executing": 1,
    "Success": 2,
    "Failure": 0,
    "Overridden": 0
  },
  "Pagination": {
    "total": 3,
    "page_size": 50,
    "page_index": 1,
    "last_page": 1
  },
  "Hint": "",
  "Retryable": false,
  "OriginalStatusCode": 200,
  "StatusCode": 200,
  "ErrorMessage": ""
}

Validation error (missing OperationLogId):

{
  "BatchOperation": {},
  "ActivityLogs": [],
  "Summary": {},
  "Pagination": {},
  "Hint": "Provide the OperationLogId returned by a batch write tool such as 'Batch Clear App Data and Cache'.",
  "Retryable": false,
  "OriginalStatusCode": 0,
  "StatusCode": -1,
  "ErrorMessage": "OperationLogId is required."
}

Batch log not found:

{
  "BatchOperation": {},
  "ActivityLogs": [],
  "Summary": {},
  "Pagination": {},
  "Hint": "Batch operation log was not found; use OperationLogId returned by the batch write tool and retry.",
  "Retryable": false,
  "OriginalStatusCode": 200,
  "StatusCode": 200,
  "ErrorMessage": "Batch operation log not found."
}

3.2 Field Reference

Field Type Description
BatchOperation.OperationLogId string Batch operation log ID
BatchOperation.Action string Batch action name
BatchOperation.DeviceNum number Total devices in the batch
BatchOperation.CreatedAt string Batch creation timestamp
ActivityLogs[] object-array Per-device activity log rows (current page)
ActivityLogs[].DeviceId string Device unique identifier
ActivityLogs[].DeviceName string Device display name
ActivityLogs[].Pid string Per-device activity log process ID
ActivityLogs[].Action string Operation action name
ActivityLogs[].Progress string Executing \ Success \ Failure \ Overridden
ActivityLogs[].FailReason string Failure reason when Progress is Failure
Summary.Total number Total activity log count
Summary.Executing number Devices still executing
Summary.Success number Successful devices
Summary.Failure number Failed devices
Summary.Overridden number Overridden devices
Pagination.total number Total matching records
Pagination.page_size number Page size used
Pagination.page_index number Current page index
Pagination.last_page number Last page number
StatusCode number Tool status code
ErrorMessage string Empty = success; non-empty = failure
Hint string Suggested next action on error
Retryable bool Whether identical retry may help
OriginalStatusCode number Upstream HTTP status (0 = no response)

3.3 Progress Values

Progress Meaning Agent Action
Executing Command queued or in progress Continue polling
Success Completed successfully Done for this device
Failure Failed Read FailReason
Overridden Superseded by a newer command Usually no action needed

4. Examples

4.1 Basic Poll After Batch Clear

Step 1: Batch Clear App Data and Cache returns OperationLogId

Step 2: Query status

{
  "OperationLogId": 1770854462319857000
}

Step 3: When Summary.Executing == 0, review Summary.Failure and failed rows in ActivityLogs

4.2 Filter Executing Devices

{
  "OperationLogId": 1770854462319857000,
  "Filter": {
    "progress": {
      "in": ["Executing"]
    }
  }
}

5. Error Handling

5.1 Status Code Reference

StatusCode Meaning Agent Action
-1 Local validation error Fix parameters; do not retry unchanged
200 Request completed Check ErrorMessage; empty = success
500 Network/timeout error Retry if Retryable == true

5.2 Common Errors

StatusCode ErrorMessage (example) Cause Fix
-1 OperationLogId is required. Missing ID Pass OperationLogId from batch write
-1 OperationLogId must be a positive integer. Invalid ID Use the whole-number ID from the batch write response
-1 PageIndex is invalid. Page index is zero, negative, decimal, non-numeric text, or otherwise invalid Use a whole number starting at 1; only an omitted / None value defaults to 1
-1 PageSize is invalid. Page size is zero, negative, decimal, non-numeric text, or otherwise invalid Use a whole number from 1 through 100; only an omitted / None value defaults to 50
200 (non-empty message) Batch log not found or business error Verify OperationLogId; read Hint
500 Request timeout after 60 seconds. Network timeout Retry once with smaller PageSize

5.3 Agent Self-Healing

StatusCode Auto-retry Strategy
-1 ❌ Fix parameters
200 + ErrorMessage ❌ Follow Hint
500 + Retryable=true ⚠️ Retry the read according to Hint

6. Best Practices

6.1 Polling

  • Stop condition: Summary.Executing == 0
  • Use Summary first; drill into ActivityLogs only when needed
  • For batches over 50 devices, paginate with PageIndex / PageSize

6.2 Idempotency

This is a read-only, idempotent tool. Safe to call repeatedly with the same parameters.

6.3 vs Get an Activity Log

Tool Input Use Case
Search Batch Operation Activity Logs OperationLogId All devices in one batch operation
Get an Activity Log DeviceId + Pid Single device, single Pid

7. Related Tools

Tool Relationship
Batch Clear App Data and Cache Provides OperationLogId (upstream)
Get an Activity Log Single-device alternative when you already have DeviceId + Pid

8. Tool Chains

List Devices → Batch Clear App Data and Cache → Search Batch Operation Activity Logs (poll until Summary.Executing == 0)

Steps:

  1. Collect DeviceIds and PkgId
  2. Submit batch clear; save OperationLogId
  3. Poll this tool until all devices reach a terminal Progress
  4. Optionally filter progress == Failure to retry or notify operators

Appendix:

  • Field reference: ./Field Reference.md
  • Error codes: ./Error Codes.md
Updated on: Aug 5, 2026
Was This Page Helpful?
Prev Batch Set Device Tags
Next Search File Batch Delete Results
Discussion

Leave a Reply. Cancel reply

Your email address will not be published. Required fields are marked*

Product-related questions?Contact Our Support Team to Get a Quick Solution>
On this page
  • Quick Start (Copy & Use)
  • Recipes (Common Recipes)
    • Recipe 1: Poll After Batch Clear
    • Recipe 2: List Only Failed Devices
    • Recipe 3: Paginate Large Batches
  • 1. Overview
    • 1.1 Description
    • 1.2 When to Use
    • 1.3 Execution Mode & Response
    • 1.4 Prerequisites
    • 1.5 Prerequisite Tools
  • 2. Inputs
    • 2.1 Parameter List
    • 2.2 Parameter Details
    • 2.3 Parameter Combination Logic
  • 3. Outputs
    • 3.1 Response Examples
    • 3.2 Field Reference
    • 3.3 Progress Values
  • 4. Examples
    • 4.1 Basic Poll After Batch Clear
    • 4.2 Filter Executing Devices
  • 5. Error Handling
    • 5.1 Status Code Reference
    • 5.2 Common Errors
    • 5.3 Agent Self-Healing
  • 6. Best Practices
    • 6.1 Polling
    • 6.2 Idempotency
    • 6.3 vs Get an Activity Log
  • 7. Related Tools
  • 8. Tool Chains
loading...
No Results