export_journals
Export consolidation journals from Oracle EPM Cloud FCCS for financial reporting and analysis. This tool retrieves journal data using specified parameters to support consolidation processes.
Instructions
Export consolidation journals / Exportar diarios de consolidacao
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parameters | No | Export parameters |
Implementation Reference
- fccs_agent/tools/journals.py:133-145 (handler)Main tool handler for export_journals. Calls the FCCS client method and wraps the result in a success response.async def export_journals( parameters: Optional[dict[str, Any]] = None ) -> dict[str, Any]: """Export consolidation journals / Exportar diarios de consolidacao. Args: parameters: Export parameters (scenario, year, period, etc.). Returns: dict: Job submission result. """ result = await _client.export_journals(_app_name, parameters) return {"status": "success", "data": result}
- fccs_agent/tools/journals.py:220-229 (schema)Input schema definition for the export_journals tool in TOOL_DEFINITIONS.{ "name": "export_journals", "description": "Export consolidation journals / Exportar diarios de consolidacao", "inputSchema": { "type": "object", "properties": { "parameters": {"type": "object", "description": "Export parameters"}, }, }, },
- fccs_agent/agent.py:117-122 (registration)Registration of export_journals handler in the central TOOL_HANDLERS dictionary."get_journals": journals.get_journals, "get_journal_details": journals.get_journal_details, "perform_journal_action": journals.perform_journal_action, "update_journal_period": journals.update_journal_period, "export_journals": journals.export_journals, "import_journals": journals.import_journals,
- fccs_agent/agent.py:143-152 (registration)Aggregation of tool definitions including journals.TOOL_DEFINITIONS which contains the schema for export_journals.ALL_TOOL_DEFINITIONS = ( application.TOOL_DEFINITIONS + jobs.TOOL_DEFINITIONS + dimensions.TOOL_DEFINITIONS + journals.TOOL_DEFINITIONS + data.TOOL_DEFINITIONS + reports.TOOL_DEFINITIONS + consolidation.TOOL_DEFINITIONS + memo.TOOL_DEFINITIONS )
- Low-level FCCSClient method that submits the EXPORTJOURNALS job to the REST API.async def export_journals( self, app_name: str, parameters: Optional[dict[str, Any]] = None ) -> dict[str, Any]: """Export journals / Exportar lancamentos.""" if self.config.fccs_mock_mode: return {"jobId": "601", "status": "Submitted", "jobType": "ExportJournals"} payload = {"jobType": "EXPORTJOURNALS", **(parameters or {})} response = await self._client.post( f"/{app_name}/jobs{self._get_query_params()}", json=payload ) response.raise_for_status() return response.json()