copy_data
Copy financial data between scenarios, years, or periods in Oracle EPM Cloud FCCS to replicate or transfer consolidation information.
Instructions
Copy data between scenarios, years, or periods / Copiar dados
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_scenario | No | Source scenario | |
| to_scenario | No | Target scenario | |
| from_year | No | Source year | |
| to_year | No | Target year | |
| from_period | No | Source period | |
| to_period | No | Target period |
Implementation Reference
- fccs_agent/tools/data.py:76-112 (handler)Main tool handler function that processes parameters and calls the FCCS client to copy data.async def copy_data( from_scenario: Optional[str] = None, to_scenario: Optional[str] = None, from_year: Optional[str] = None, to_year: Optional[str] = None, from_period: Optional[str] = None, to_period: Optional[str] = None ) -> dict[str, Any]: """Copy data between scenarios, years, or periods / Copiar dados entre cenarios. Args: from_scenario: Source scenario. to_scenario: Target scenario. from_year: Source year. to_year: Target year. from_period: Source period. to_period: Target period. Returns: dict: Job submission result. """ parameters = {} if from_scenario: parameters["fromScenario"] = from_scenario if to_scenario: parameters["toScenario"] = to_scenario if from_year: parameters["fromYear"] = from_year if to_year: parameters["toYear"] = to_year if from_period: parameters["fromPeriod"] = from_period if to_period: parameters["toPeriod"] = to_period result = await _client.copy_data(_app_name, parameters) return {"status": "success", "data": result}
- fccs_agent/tools/data.py:191-204 (schema)Input schema definition for the copy_data tool in TOOL_DEFINITIONS list.{ "name": "copy_data", "description": "Copy data between scenarios, years, or periods / Copiar dados", "inputSchema": { "type": "object", "properties": { "from_scenario": {"type": "string", "description": "Source scenario"}, "to_scenario": {"type": "string", "description": "Target scenario"}, "from_year": {"type": "string", "description": "Source year"}, "to_year": {"type": "string", "description": "Target year"}, "from_period": {"type": "string", "description": "Source period"}, "to_period": {"type": "string", "description": "Target period"}, }, },
- fccs_agent/agent.py:123-127 (registration)Registration of copy_data handler in the central TOOL_HANDLERS dictionary.# Data "export_data_slice": data.export_data_slice, "smart_retrieve": data.smart_retrieve, "copy_data": data.copy_data, "clear_data": data.clear_data,
- Client method invoked by the tool handler to perform the actual FCCS API call for copying data.async def copy_data( self, app_name: str, parameters: dict[str, Any] ) -> dict[str, Any]: """Copy data / Copiar dados.""" if self.config.fccs_mock_mode: return {"jobId": "401", "status": "Submitted", "jobType": "CopyData"} payload = {"jobType": "COPYDATA", **parameters} response = await self._client.post( f"/{app_name}/jobs{self._get_query_params()}", json=payload ) response.raise_for_status() return response.json()