Hi Sibusiso,
you can try this way to resolve this issue. The issue where a choice variable turns into [object Object]
in a Condition node happens because the variable is stored as an object, not a plain string.
Fix: Convert to Text
To resolve it, cast the choice variable using Text()
before the condition.
Option 1 – Inline Fix:
If(Text(Topic.YourChoiceVariable) = "Technical", ...)
Option 2 – Set a new variable first:
Set(ChoiceAsString, Text(Topic.YourChoiceVariable))
Then use ChoiceAsString
in your condition.
Documents for reference:
Copilot Studio Authoring Guide
Thanks,
Karan Shewale .
*************************************************************************
If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.