query_plugin_trace_logs
Reads bounded Dynamics 365 plugin trace rows by time, correlation ID, step, or exact plugin type to diagnose execution issues, with optional message text and sensitive config excluded.
Instructions
Read bounded native plugin trace rows by time, correlation ID, step and exact plugin type. Default excludes message/exception text; configuration and secureconfiguration are always excluded. Empty results do not prove no execution, disabled logging or log deletion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Maximum visible rows, default 50. Reaching this bound is not a complete inventory. | |
| stepId | No | Compatibility alias for step_id; conflicting values are rejected. | |
| toTime | No | Compatibility alias for to_time; conflicting values are rejected. | |
| step_id | No | ||
| to_time | No | ISO timestamp with explicit timezone, inclusive. Default current UTC time. | |
| fromTime | No | Compatibility alias for from_time; conflicting values are rejected. | |
| maxPages | No | Compatibility alias for max_pages; conflicting values are rejected. | |
| from_time | No | ISO timestamp with explicit timezone, inclusive. Default 24 hours before to_time. | |
| max_pages | No | Maximum native pages, default 5. Bounded reads report incompleteness. | |
| includeText | No | Compatibility alias for include_text; conflicting values are rejected. | |
| include_text | No | Default false. Opt in to trace/exception/job message text, which can contain business data. Secure/unsecure configuration columns are never selected. | |
| maxTextChars | No | Compatibility alias for max_text_chars; conflicting values are rejected. | |
| correlationId | No | Compatibility alias for correlation_id; conflicting values are rejected. | |
| correlation_id | No | ||
| exceptionsOnly | No | Compatibility alias for exceptions_only; conflicting values are rejected. | |
| max_text_chars | No | Per-text preview limit, default 2000; truncation is explicit. | |
| pluginTypeName | No | Compatibility alias for plugin_type_name; conflicting values are rejected. | |
| exceptions_only | No | Only rows with nonempty native exceptiondetails; default false. | |
| plugin_type_name | No |