Actions22
- Get Actions
- Message Actions
- Friend Actions
- Group Actions
- Tool Actions
Overview
This node operation "Lock Poll" for the resource "Group" is designed to lock a specific poll within a group. Locking a poll typically means preventing further votes or changes to that poll, effectively closing it to participants. This functionality is useful in scenarios where a poll has reached its deadline or when the poll creator wants to finalize the results and stop any additional input.
Practical examples include:
- Closing a group decision poll after a voting period ends.
- Preventing further changes to a poll once consensus is reached.
- Managing event RSVPs by locking the poll to finalize attendee lists.
Properties
| Name | Meaning |
|---|---|
| pollId | The unique identifier of the poll within the group to be locked. |
The property pollId is required and must be provided as a string representing the ID of the poll to lock.
Output
The node outputs an array of JSON objects, each representing the result of the lock operation. The structure includes at least a boolean field indicating success or failure, and may include error details if the operation fails.
The output does not explicitly mention binary data, so it is assumed to be purely JSON.
Example output structure (conceptual):
[
{
"success": true,
"message": "Poll locked successfully",
"pollId": "12345"
}
]
Or in case of error:
[
{
"success": false,
"error": "Poll not found or already locked",
"pollId": "12345"
}
]
Dependencies
- Requires an API key credential or similar authentication token configured in n8n to authorize requests to the external service managing group polls.
- Uses an HTTP request library internally to communicate with the external API endpoint responsible for locking the poll.
- May depend on environment variables or node credentials for authentication.
Troubleshooting
Common Issues
- Invalid or missing Poll ID: If the
pollIdis not provided or incorrect, the node will fail to lock the poll. - Authentication errors: Missing or invalid API credentials will cause authorization failures.
- Poll already locked or non-existent: Attempting to lock a poll that is already locked or does not exist will result in an error response.
- Network issues: Connectivity problems can prevent the node from reaching the external API.
Error Messages and Resolutions
"Poll not found": Verify that thepollIdis correct and that the poll exists in the group."Unauthorized"or"Authentication failed": Check that the API key or authentication token is correctly configured and valid."Poll already locked": The poll cannot be locked again; confirm the poll status before attempting to lock.- Network timeout or connection refused: Ensure network connectivity and that the external API endpoint is reachable.
Links and References
- Refer to the external service's API documentation for managing group polls and the lock poll endpoint.
- n8n documentation on creating and configuring nodes with API authentication.
- General best practices for handling API errors and retries in n8n workflows.
Note: The source code was heavily obfuscated and minified, limiting detailed static analysis. The summary is based on the provided property definitions and typical behavior of a "lock poll" operation in group management contexts.