cPVAL Days Since Last Contact
Summary
Stores the whole number of days elapsed since a device last contacted NinjaOne when its offline duration meets or exceeds the lowest threshold supplied to the Offline Machines Report - Organization and Global KB automation.
Paired with cPVAL Last Contact, this field enables device-level filtering, saved search groups, and policy conditions based on how many days an endpoint has been offline — providing full offline machine auditing even in NinjaOne environments where the paid Documentation (Knowledge Base) feature is not configured.
The value is calculated and written through the NinjaOne Public API on every run of the reporting automation. Every reported workstation or server whose last contact is at least as old as the lowest value in Threshold Days receives its current whole-day offline count in this field. When a device comes back online or falls below the lowest configured threshold on a subsequent run, the automation clears the value back to null.
Details
| Label | Field Name | Example | Definition Scope | Type | Required | Default Value | Editable | Custom Field Tab |
|---|---|---|---|---|---|---|---|---|
cPVAL Days Since Last Contact | cpvalDaysSinceLastContact | 45 | Device | Integer | No | No | Offline Machines Auditing |
Dependencies
- Custom Field: cPVAL Last Contact
- Custom Field: cPVAL Ninja API Client ID
- Custom Field: cPVAL Ninja API Client Secret
- Automation: Offline Machines Report - Organization and Global KB
- Solution: Offline Machines Reporting
Custom Field Creation
Sample Screenshot

Changelog
2026-10-14
- Initial version of the document