Productive icon

Productive

Interact with the Productive API

Actions508

Holidays → Get all holidays

AI-generated

Summary

Retrieve a list of holidays from the Productive API with optional filtering and pagination.

Inputs

  • Return All — Whether to return all matching holidays or limit the results to a specific number and page.
  • Limit — Maximum number of holiday records to return when not returning all.
  • Page Number — The page number of results to retrieve when not returning all.
  • Page Size — Number of holiday records to return per page (max 200) when not returning all.
  • Filter Query String — A raw filter string using Productive API syntax that overrides other filter inputs.
  • Filters — One or more filters on fields (After, Before, Holiday Calendar ID, ID) with operations like equals, contains, greater than, etc., ignored if Filter Query String is set.

Output shape

A list of holiday records matching the criteria.

If 'Return All' is true, all matching holidays are returned without pagination. If false, pagination applies using 'Limit', 'Page Number', and 'Page Size' parameters. Filter Query String disables other filters. Errors in individual executions can be captured if 'continue on fail' is enabled.

Examples

Example 1: Retrieve up to 50 holidays on page 1

Return All: false; Limit: 50; Page Number: 1; no filters.

Example 2: Fetch all holidays without limit

Return All: true; ignores pagination and filters unless Filter Query String is provided.

Example 3: Filter holidays after a certain date

Filters: Filter Field='After', Operation='gt_eq', Value='2024-01-01'

Discussion