Actions25
Overview
This node, named "Wechat Work Node," is designed to interact with the Wechat Work platform. Specifically, for the resource "用户管理" (User Management) and operation "获取成员ID列表" (Get Member ID List), it retrieves a list of user IDs from the Wechat Work organization. This functionality is useful for scenarios where you need to synchronize or manage users in your system based on the members registered in Wechat Work.
Practical examples include:
- Importing all user IDs into a CRM or database.
- Paginating through large user lists to process or analyze member data.
- Automating workflows that depend on current organizational membership.
Properties
| Name | Meaning |
|---|---|
| 游标 | Cursor string used for pagination; obtained from the previous call. Leave empty for the first call. |
| 分页大小 | Number specifying the page size for each request; minimum 1, maximum 10000; default is 50. |
Output
The node outputs JSON data containing the list of user IDs retrieved from Wechat Work. Each item in the output array corresponds to a user ID entry. The exact structure depends on the API response but generally includes identifiers representing members.
No binary data output is indicated by the source code or properties.
Dependencies
- Requires an API key credential for authenticating with the Wechat Work API. This typically involves providing a corporate ID and secret.
- The node internally calls the Wechat Work API endpoint to fetch tokens and user data.
- No additional external dependencies are explicitly required beyond standard HTTP requests.
Troubleshooting
Common issues:
- Invalid or expired API credentials will cause authentication failures.
- Incorrect cursor values may result in empty or repeated data pages.
- Exceeding the maximum allowed page size (over 10000) will likely cause errors.
Error messages:
- Errors thrown during API calls will be captured and can either stop execution or continue depending on the node's "continue on fail" setting.
- Typical error messages relate to network issues, invalid credentials, or unsupported operations.
Resolutions:
- Verify API credentials and ensure they have proper permissions.
- Use the cursor returned from the previous successful call for pagination.
- Adjust the page size within allowed limits.
Links and References
- Wechat Work Official API Documentation
- n8n documentation on Creating Custom Nodes