Actions35
- Adjustments Actions
- Assemblies Actions
- Batches Actions
- Companies Actions
- Contacts Actions
- Custom Fields Actions
- File Attachments Actions
- Inventory Actions
- Invoices Actions
- Locations Actions
- Orders Actions
- Packages Actions
- Payment Methods Actions
- Product POS Mappings Actions
- Products Actions
- Purchases Actions
- Strains Actions
- Test Results Actions
- Users Actions
Companies → Get Many
AI-generatedOverview
This node operation retrieves multiple company records from the Distru Public API. It supports pagination and filtering options such as page number, page size, creation datetime range, last modified datetime range, and inclusion of deleted records. This operation is useful for scenarios where you need to fetch a list of companies for reporting, synchronization, or data analysis purposes.
Use Case Examples
- Fetch the first 5000 companies created between January 1, 2024, and June 1, 2024.
- Retrieve companies updated within a specific date range for synchronization with another system.
- Get all companies including those marked as deleted for audit or recovery purposes.
Properties
| Name | Meaning |
|---|---|
| Page Number | Page number for pagination to specify which page of results to retrieve. |
| Page Size | Number of items per page to control the size of the result set. |
| Inserted Datetime | Filter companies by their creation datetime using a comma-separated range (e.g., "2024-01-01T00:00:00Z,2024-06-01T00:00:00Z"). |
| Updated Datetime | Filter companies by their last modified datetime using a comma-separated range. |
| Deleted | Option to include deleted records in the results. Choices are No (default), Only deleted records, or Include deleted along with active records. |
Output
JSON
json- Each item in the output array represents a company record retrieved from the API.
Dependencies
- Requires an API token credential for the Distru Public API.
Troubleshooting
- Common issues include missing or invalid API token, which results in an error indicating the token is not set.
- If the Resource ID is required but not provided, the node throws an error indicating the Resource ID is required.
- Errors related to unsupported operations if an invalid operation name is used.
- Missing binary data error if a file upload operation is attempted without the required binary property.