diff --git a/src/content/docs/workflows/build/trigger-workflows.mdx b/src/content/docs/workflows/build/trigger-workflows.mdx index 3dbf0b7790a5f4..df902086155b38 100644 --- a/src/content/docs/workflows/build/trigger-workflows.mdx +++ b/src/content/docs/workflows/build/trigger-workflows.mdx @@ -68,7 +68,7 @@ export default { // If an ?instanceId= query parameter is provided, fetch the status // of an existing Workflow by its ID. if (instanceId) { - let instance = await env.MY_WORKFLOW.get(id); + let instance = await env.MY_WORKFLOW.get(instanceId); return Response.json({ status: await instance.status(), });