Hudu icon

Hudu

Interact with Hudu REST API

Photo → Get Many

AI-generated

Overview

This node operation retrieves multiple photo records from the Hudu API based on specified filters and parameters. It is useful for scenarios where users need to fetch a list of photos, such as for displaying photo galleries, managing photo archives, or integrating photo data into workflows. For example, a user might want to get all photos associated with a specific company or within a certain date range.

Use Case Examples

  1. Fetch all photos related to a particular company ID.
  2. Retrieve photos created within the last 7 days.
  3. Get a limited number of photos from a specific folder.

Properties

Name Meaning
Return All Whether to return all photo results or only up to a given limit.
Limit Maximum number of photo results to return when 'Return All' is false.
Wrap Results in Single Item Whether to return all photo results as a single item containing an 'items' array and a 'count' field, which helps prevent downstream nodes from executing once per result item and avoids rate limiting issues.
Filters Collection of filters to narrow down the photo results, including archived status, company ID, creation date range, folder ID, photoable ID and type, and update date range.

Output

JSON

  • items - Array of photo objects when results are wrapped in a single item.
  • count - Number of photo objects returned when results are wrapped.
  • photoId - Unique identifier of the photo.
  • photoUrl - URL of the photo.
  • archived - Boolean indicating if the photo is archived.
  • companyId - Identifier of the company associated with the photo.
  • createdAt - Timestamp when the photo was created.
  • folderId - Identifier of the folder containing the photo.
  • photoableId - ID of the record the photo is attached to.
  • photoableType - Type of the record the photo is attached to.
  • updatedAt - Timestamp when the photo was last updated.

Dependencies

  • Hudu REST API
  • API key credential for authentication

Troubleshooting

  • Common issues include invalid or missing API credentials, which will cause authentication errors.
  • Incorrect filter values or unsupported filter combinations may result in empty or unexpected results.
  • If 'Return All' is set to false but the limit is too low, not all desired photos may be retrieved.
  • Rate limiting errors can occur if too many requests are made in a short period; using the 'Wrap Results in Single Item' option can help mitigate this by reducing downstream executions.

Links

Discussion