Actions16
- User Actions
- Activity Actions
- Message Actions
Overview
This node interacts with the CoachTrigger API to retrieve and manage user activity data within a company context. Specifically, for the "Activity" resource and the "Company: Get User Activities List" operation, it fetches a list of activities associated with a particular user. This is useful in scenarios where you want to analyze or display the activities a user has performed or been assigned within a coaching or performance management system.
Practical examples include:
- Fetching all activities for a user to display in a dashboard.
- Integrating user activity data into reports or notifications.
- Automating workflows based on user activity status or history.
Properties
Name | Meaning |
---|---|
Authentication | Choose between two authentication methods: "Company Api" (using an API key) or "System Api". |
User ID | The unique identifier of the user whose activities you want to retrieve. |
Output
The node outputs JSON data containing the list of user activities as returned by the CoachTrigger API endpoint /crmApi/user/activities
. The structure of this JSON depends on the API response but generally includes details about each activity related to the specified user.
No binary data output is involved.
Example output snippet (conceptual):
{
"activities": [
{
"activityId": "123",
"name": "Activity Name",
"status": "completed",
"date": "2024-01-01"
},
...
]
}
Dependencies
- Requires access to the CoachTrigger API.
- Requires either a "Company Api" or "System Api" authentication credential configured in n8n.
- Network connectivity to
https://www.coachtriggerapp.com
.
Troubleshooting
- Authentication errors: Ensure that the correct API key or token is provided and valid. Check that the selected authentication method matches the credentials configured.
- Missing or invalid User ID: The User ID property is required; ensure it is correctly set and corresponds to an existing user in the system.
- API request failures: Could be due to network issues, incorrect endpoint usage, or server-side problems. Review error messages returned by the API for more details.
- JSON parsing errors: If the API returns unexpected data formats, verify the API version and compatibility.
Links and References
- CoachTrigger API Documentation (assumed URL for reference)
- n8n documentation on HTTP Request Node for understanding API calls in workflows