Skip to main content

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

ParameterTypeRequiredDescription
KeyStringYesUnique identifier for the data
FormatStringNoTimestamp 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

ParameterTypeRequiredDescription
KeyStringYesUnique identifier for the data
TimestampStringNoCustom timestamp (defaults to current time)
FormatStringNoTimestamp 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:

  1. Get last update time
  2. Check if data is stale
  3. Update data if needed
  4. 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:

  1. App Info Actions - Monitor system health