Get Many
AI-generatedOverview
This node interacts with the KiotViet API to retrieve multiple customer records. It supports fetching all customers or a limited number based on user-defined filters such as search term, group ID, and last modification date. This is useful for scenarios where you need to manage or analyze customer data in bulk, such as syncing customer lists, generating reports, or filtering customers for targeted marketing.
Use Case Examples
- Fetch all customers from KiotViet without limit.
- Fetch up to 50 customers filtered by a specific group ID.
- Fetch customers modified since a certain date with a search term filter.
Properties
| Name | Meaning |
|---|---|
| Lấy toàn Bộ | Determines whether to fetch all customer records or limit the number of results. |
| Giới Hạn | Specifies the maximum number of customer records to return when not fetching all. |
| Bộ Lọc | Filters to narrow down the customer list based on search term, group ID, or last modification date. |
Output
JSON
data- Array of customer objects retrieved from KiotViet.total- Total number of customers matching the query.pageSize- Number of customers returned per page/request.currentItem- Index of the current item in the pagination.
Dependencies
- KiotViet API with authentication credentials
Troubleshooting
- If fetching customers fails, the node throws an error with the message 'Failed to fetch customers' followed by the API error message. Check API credentials and network connectivity.
- When fetching all customers, the node paginates through results with delays; network issues or API rate limits may cause incomplete data retrieval.
- Ensure the 'limit' parameter is a positive number when 'returnAll' is false to avoid invalid requests.