web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : +nDsHWjTHNHT7xb4E30on/
Copilot Studio - General
Suggested answer

[Object object] in replacement of optionset selection

Like (3) ShareShare
ReportReport
Posted on 18 Mar 2025 15:40:27 by 6
Hi,
 
Anytime I select a value from an optionset in a condition node, it gest replaced with [object object].
 
 
The value isn'T available in the background still, as we get this error when we test our bot;
 

Message d’erreur : Affectation manquante ou non valide pour la variable « System.User.Language Â».

Code d’erreur : MissingOrInvalidVariableAssignment

ID de conversation : 353c1030-8867-4fc4-ad86-2cbd172bb847

 
 
Thank you in adavance
Categories:
  • Suggested answer
    Mikko Berg Profile Picture
    2 on 08 Jul 2025 at 13:42:26
    [Object object] in replacement of optionset selection
    Hi, this seems work for the time being:
     
     
    1. I'm using question node. Response is stored to optionset "Global.FavoriteCoffee".
    2. Add condition node with all options.
    3. Add "Set string variable value" node. I want to set "Global.FavoriteCoffeeString" variable.
    4. Open code editor and copy the values from the ConditionGroup:
        - kind: ConditionGroup
          id: conditionGroup_6shKYm
          conditions:
            - id: conditionItem_5zaSor
              condition: =Global.FavoriteCoffee = 'crac_voice.topic.MainMenu.main.question_6lRSDv'.Cappucino
              displayName: Cappucino
    
            - id: conditionItem_cMTgUn
              condition: =Global.FavoriteCoffee = 'crac_voice.topic.MainMenu.main.question_6lRSDv'.Espresso
              displayName: Espresso
    
            - id: conditionItem_2AYoOm
              condition: =Global.FavoriteCoffee = 'crac_voice.topic.MainMenu.main.question_6lRSDv'.Latte
              displayName: Latte
     
    5. Use Switch statement in "Set string variable value" node using the values from ConditionGroup:
     
    value: =Switch(
      Global.FavoriteCoffee,
      'crac_voice.topic.MainMenu.main.question_6lRSDv'.Cappucino, "Cappucino",
      'crac_voice.topic.MainMenu.main.question_6lRSDv'.Espresso, "Espresso",
      'crac_voice.topic.MainMenu.main.question_6lRSDv'.Latte, "Latte"
    )

    6. Remove the condition node.
    7. I have the value in "Global.FavoriteCoffeeString" variable.
  • CU12061447-0 Profile Picture
    2 on 12 Jun 2025 at 14:49:33
    [Object object] in replacement of optionset selection
    I have the same bug. Wow! Peak Microsoft. This issue is ridiculous, isn't this the most basic use case ever of a Multiple Choice Question? 

    What's the status of the bug? Last comment was about 3 months ago. 
  • Suggested answer
    Vinoth Selvam Profile Picture
    1,560 Super User 2025 Season 2 on 19 Mar 2025 at 12:14:37
    [Object object] in replacement of optionset selection
     
    It looks like a known issue which MS is working on.
     
    Thanks.
  • Suggested answer
    HenryJammes Profile Picture
    on 18 Mar 2025 at 19:16:12
    [Object object] in replacement of optionset selection
    There is an active issue we're tracking (internal reference: 608284852, if needed with support)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 468 Super User 2025 Season 2

#2
stampcoin Profile Picture

stampcoin 52 Super User 2025 Season 2

#3
trice602 Profile Picture

trice602 46 Super User 2025 Season 2

Loading complete