d365fo_call_json_service
Invoke JSON service operations in Dynamics 365 Finance & Operations using the /api/services pattern to execute custom business logic and retrieve system data.
Instructions
Call a D365 F&O JSON service endpoint using the /api/services pattern.
This provides a generic way to invoke any JSON service operation in D365 F&O.
Args: service_group: Service group name (e.g., 'SysSqlDiagnosticService') service_name: Service name (e.g., 'SysSqlDiagnosticServiceOperations') operation_name: Operation name (e.g., 'GetAxSqlExecuting') parameters: Optional parameters to send in the POST body profile: Configuration profile to use
Returns: Dictionary with service response data and metadata
Example: Call a service without parameters: { "service_group": "SysSqlDiagnosticService", "service_name": "SysSqlDiagnosticServiceOperations", "operation_name": "GetAxSqlExecuting" }
Call a service with parameters:
{
"service_group": "SysSqlDiagnosticService",
"service_name": "SysSqlDiagnosticServiceOperations",
"operation_name": "GetAxSqlResourceStats",
"parameters": {
"start": "2023-01-01T00:00:00Z",
"end": "2023-01-02T00:00:00Z"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_group | Yes | ||
| service_name | Yes | ||
| operation_name | Yes | ||
| parameters | No | ||
| profile | No | default |