Actions118
- Item Actions
- Activity Actions
- Asset Actions
- Authentication Actions
- Collection Actions
- Extension Actions
- Field Actions
- File Actions
- Folder Actions
- Permission Actions
- Preset Actions
- Relation Actions
- Revision Actions
- Role Actions
- Server Actions
- Setting Actions
- User Actions
- Utility Actions
- Webhook Actions
Activity → Get
AI-generatedOverview
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
- Fetch activity details by ID to display in a dashboard.
- 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
- Directus Activity API Documentation - Official documentation for the Directus Activity resource, detailing available fields and metadata options.