get_flow_details
Retrieve complete logic of a ServiceNow Flow Designer flow by sys_id, including trigger, steps, and referenced tables. Optionally include detailed step inputs, outputs, and conditions.
Instructions
Get detailed logic of a Flow Designer flow by sys_id.
Fetches the flow definition from sys_hub_flow_base and parses the label_cache to extract trigger, steps, referenced tables, and data flow. Use get_flows to find the flow sys_id first.
Prerequisites: Use get_flows(name_filter="...") to find the flow sys_id.
Examples: get_flow_details(sys_id="abc123...") get_flow_details(sys_id="abc123...", include_step_details=True)
Args: sys_id: The sys_id of the flow (from get_flows results). include_step_details: If True, fetches and decodes step-level configuration from sys_hub_flow_logic_instance_v2 and sys_hub_step_instance. Shows actual inputs, outputs, and conditions for each step. Requires fd_read role. Defaults to False for efficiency.
Returns: JSON object with flow metadata (sys_id, name, internal_name, description, active, status, run_as, type, sys_scope, sys_created_by, sys_updated_on), "steps" and "step_count" parsed from label_cache, and "suggested_next" guidance. When include_step_details=True, also includes "detailed_steps" (with decoded inputs, outputs, conditions, variables per step) and "detailed_step_count".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sys_id | Yes | ||
| include_step_details | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |