Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Activity → Get

AI-generated

Overview

This node retrieves a specific activity record by its ID from the Directus system. It is useful for scenarios where you need to fetch detailed information about a particular activity, such as user actions or system events, by specifying its unique identifier. For example, you might use this node to get the details of a user login activity or a content update event.

Use Case Examples

  1. Fetch activity details by ID to display in a dashboard.
  2. Retrieve metadata about a specific activity for auditing purposes.

Properties

Name Meaning
ID The unique identifier (index) of the activity to retrieve. This is a required numeric input with a minimum value of 1.
Additional Fields Optional fields to customize the response, including which fields to return and what metadata to include.

Output

JSON

  • id - The unique identifier of the retrieved activity.
  • fields - The fields of the activity object returned based on the 'fields' input.
  • meta - Metadata included in the response based on the 'meta' input.

Dependencies

  • Directus API

Troubleshooting

  • Ensure the provided ID is a valid number greater than or equal to 1, as invalid IDs will cause errors.
  • If the requested activity ID does not exist, the node will likely return an error or empty response; verify the ID before execution.
  • Incorrect or unsupported field names in 'Fields' may result in incomplete or failed responses; verify field names against the Directus API documentation.

Links

Discussion