Last Updated Actions
Last Updated actions enable you to track last successful polling time and implement incremental data fetching. This is essential for implementing the Temporal Pattern in your workflows.
Available Operations
Last Updated Actions
- Create last updated record - Set the last update timestamp for a key
- Get last updated record - Retrieve the last update timestamp for a key
Get last updated record
Retrieve the last update timestamp for a key.
Get Last Updated Record Configuration
| Parameter | Type | Required | Description |
|---|---|---|---|
| Key | String | Yes | Unique identifier for the data |
| Format | String | No | Timestamp format (ISO, Unix, Custom) |
Get Last Updated Record Example
{
"key": "user-profile-12345"
}
Get Last Updated Record Response
{
"success": true,
"data": {
"id": "clu123456789",
"key": "user-profile-12345",
"timestamp": "2024-01-01T10:00:00.000Z",
"appId": "app123",
"createdAt": "2024-01-01T10:00:00.000Z",
"updatedAt": "2024-01-01T10:00:00.000Z"
}
}
Create last updated record
Set the last update timestamp for a key.
Create Last Updated Record Configuration
| Parameter | Type | Required | Description |
|---|---|---|---|
| Key | String | Yes | Unique identifier for the data |
| Timestamp | String | No | Custom timestamp (defaults to current time) |
| Format | String | No | Timestamp format (ISO, Unix, Custom) |
Create Last Updated Record Example
{
"key": "user-profile-12345",
"timestamp": "2024-01-01T10:00:00.000Z"
}
Create Last Updated Record Response
{
"success": true,
"data": {
"id": "clu123456789",
"key": "user-profile-12345",
"timestamp": "2024-01-01T10:00:00.000Z",
"appId": "app123",
"createdAt": "2024-01-01T10:00:00.000Z",
"updatedAt": "2024-01-01T10:00:00.000Z"
}
}
Common Patterns
Temporal Pattern
Implement the temporal pattern for incremental polling:
- Get last update time
- Check if data is stale
- Update data if needed
- Update timestamp
// Step 1: Get Last Update
{
"key": "user-profile-{{ $json.userId }}"
}
// Step 2: Check if stale (use IF node)
// Condition: 8kit.data.timestamp is older than threshold
// Step 3: Update Last Update after changes
{
"key": "user-profile-{{ $json.userId }}",
"timestamp": "{{ $now }}"
}
Next Steps
Ready to explore more actions? Check out:
- App Info Actions - Monitor system health