Copilot Studio on VSCode doesn't recognize System variable

Guilherme Garcês Santos 0 Reputation points
2026-08-19T14:58:41.67+00:00

Captura de ecrã 2026-08-19, às 15.57.42

Hello, it seems that the copilot studio extension doesn't recognize the system variable System.ConversationContext.PreviousConversationSummary, any solutions?

Microsoft Copilot | Microsoft 365 Copilot | Development
0 comments No comments

1 answer

Sort by: Most helpful
  1. Ashlesha Pawar (Tata Consultancy Services Limited) 395 Reputation points Microsoft External Staff
    2026-08-20T04:55:49.19+00:00

    Hello Guilherme Garcês Santos

    System.ConversationContext.PreviousConversationSummary isn’t currently a documented or supported Copilot Studio system variable. Therefore, the VS Code validation error is expected when that expression is entered manually.

    Depending on your requirement, use:

    • System.Activity.Text for the latest user message.
    • System.LastMessage.Text for the previous user message.
    • A topic/global variable that your topic maintains and passes explicitly to the prompt when you need accumulated conversation context or a custom summary.

    Please also test the expression in the Copilot Studio web topic code editor. If the web portal accepts, publishes, and successfully runs the exact expression, but an unchanged cloned topic is rejected only by the latest VS Code extension, that would indicate an extension validation defect rather than unsupported syntax.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.