Skip to content

API Reference parrot_tools.interfaces.workday.handlers.custom_report

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.interfaces.workday.handlers.custom_report

View source

Generic type handler for Workday RaaS (Reports as a Service) custom reports.

This handler can execute ANY Workday custom report without requiring specific type implementations. It uses dynamic parameter passing and automatic DataFrame generation from XML responses with dynamic parsing.

Class CustomReportType

Generic handler for ANY Workday RaaS custom report.

This type can execute any Workday custom report by accepting:

  • report_name: The name of the report in Workday
  • report_owner: The email/ID of the report owner (optional, uses default)
  • **query_params: Any report-specific parameters

The handler automatically:

  • Builds the correct RaaS URL
  • Authenticates with Basic Auth
  • Converts XML response to DataFrame with dynamic parsing
  • Handles nested structures and arrays appropriately
Parameter Type Default Description
component

Method CustomReportType.execute

Execute any Workday RaaS custom report.

This method accepts the report name and any report-specific parameters. It automatically handles authentication, request execution, and DataFrame conversion.

execute(report_name: str, report_owner: str | None = None, **query_params) -> pd.DataFrame

Parameter Type Default Description
report_name str Name of the report in Workday (required)
report_owner str | None None Email/ID of report owner (optional, uses default from config)
**query_params {} Any report-specific parameters (e.g., Start_Date, Worker, etc.) Special flags: - query_string_template: str template for custom query parameters with placeholders. Example: "Organization!WID={org_wid}&To_Date={end_date}&From_Date={start_date}" Placeholders like {org_wid} will be replaced with the corresponding parameter values. - offer_and_hire: bool to map start/end dates to Ready for Hire fields and adjust path. - report_path: str to override the RaaS path when it differs from the display name. - flatten_list_dicts: bool to expand list-of-dict columns into flat columns. - drop_flattened_columns: bool to drop the original list columns after expansion. - supervisory_organizations: bool flag to map supervisory org params. - supervisory_organizations_wid: WID value for Supervisory_Organizations!WID. - supervisory_organization_wid: alias for supervisory_organizations_wid. - include_subordinate_organizations: bool/int for Include_Subordinate_Organizations. - output_format: str, "xml" (default, legacy) or "json". JSON yields a cleaner shape for reports with nested multi-instance groups (no xmltodict cardinality split).

Returns: pd.DataFrame — DataFrame with automatic column detection from JSON response

Alias WorkdayTypeBase

Re-exported from parrot_tools.interfaces.workday.handlers.base.WorkdayTypeBase.

Alias safe_serialize

Re-exported from parrot_tools.interfaces.workday.utils.safe_serialize.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally