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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / [Object object] in rep...
Copilot Studio
Suggested Answer

[Object object] in replacement of optionset selection

(3) ShareShare
ReportReport
Posted on by 10
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:
I have the same question (0)
  • Suggested answer
    HenryJammes Profile Picture
    Microsoft Employee on at
    There is an active issue we're tracking (internal reference: 608284852, if needed with support)
  • Suggested answer
    Vinoth Selvam Profile Picture
    1,592 Super User 2025 Season 1 on at
     
    It looks like a known issue which MS is working on.
     
    Thanks.
  • CU12061447-0 Profile Picture
    6 on at
    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
    # Mikko Profile Picture
    6 on at
    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 455

#2
Vish WR Profile Picture

Vish WR 295

#3
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 212 Super User 2026 Season 1

Last 30 days Overall leaderboard