Skip to content

API Reference parrot_tools.interfaces.workday.handlers.import_time_clock_events

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

parrot_tools.interfaces.workday.handlers.import_time_clock_events

View source

ImportTimeClockEventsType — handler for Import_Time_Clock_Events.

Builds the SOAP request body from a list of ClockEvent models, invokes self.service.call_operation(operation="Import_Time_Clock_Events", ...), and parses the Put_Import_Process_ResponseType into a per-row status DataFrame.

SOAP body shapes: same field types as Put (clock event data), plus optional batch_id.

Acknowledgment (Import_Time_Clock_Events_Response → Put_Import_Process_ResponseType): { "Import_Process_Reference": , "Header_Instance_Reference": } This is an ASYNC background process — we surface the reference but do NOT poll for terminal status (Non-Goal per spec §1).

Alias ClockEvent

Re-exported from parrot_tools.interfaces.workday.models.clock_event.ClockEvent.

Alias ClockEventResult

Re-exported from parrot_tools.interfaces.workday.models.clock_event.ClockEventResult.

Class ImportTimeClockEventsType

Handler for Import_Time_Clock_Events (batch async import).

The response carries a single Import_Process_Reference for the whole batch; this reference is echoed as event_id on every output row. No terminal-status polling is performed (Non-Goal).

Method ImportTimeClockEventsType.build_request

Build the Import_Time_Clock_Events SOAP body.

build_request(events: list[ClockEvent], batch_id: str | None = None, **kwargs) -> dict

Parameter Type Default Description
events list[ClockEvent] Pre-validated list of ClockEvent models.
batch_id str | None None Optional batch identifier.
**kwargs {}

Returns: dict — Dict with Time_Clock_Event_Data list (and optional batch_id).

Method ImportTimeClockEventsType.parse_ack

Parse Put_Import_Process_ResponseType into a per-row status DataFrame.

The single Import_Process_Reference is set as event_id on every row in the batch (all rows belong to the same async process).

parse_ack(raw: Any) -> pd.DataFrame

Parameter Type Default Description
raw Any Raw Zeep response (Put_Import_Process_ResponseType).

Returns: pd.DataFrame — DataFrame with columns: submitted, event_id, error.

Method ImportTimeClockEventsType.execute

Execute Import_Time_Clock_Events and return per-row status DataFrame.

execute(events: list[ClockEvent], batch_id: str | None = None, **kwargs) -> pd.DataFrame

Parameter Type Default Description
events list[ClockEvent] Validated list of ClockEvent models.
batch_id str | None None Optional batch identifier.
**kwargs {}

Returns: pd.DataFrame — DataFrame with one row per input event: submitted, event_id, error. event_id = Import_Process_Reference (same for all rows, async).

Alias WorkdayWriteTypeBase

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

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