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 / How to convert choice ...
Copilot Studio
Unanswered

How to convert choice variable to string?

(3) ShareShare
ReportReport
Posted on by
Hello Everyone.
 
I want it so that my Copilot, based on the user choice, then answers that choice using its knowledge file.
 
I add a Create Generative Answers step after my question step.
 
The question stores the user choice as a variable called user_menu_choice
 
If I try to add that choice variable as the input of the Generative Answers step it gives the error: 'Variable is being set to an incorrect type.   Assigned: EmbeddedOptionSet, expected: String'.
 
How do I convert the user choice value to String?

Many thanks.
Categories:
I have the same question (2)
  • Expiscornovus Profile Picture
    33,828 Most Valuable Professional on at
    Have you tried the Power Fx Text function for this?
     
    Below is an example
    Text(Topic.VarChoice)
     
     
  • Ian-Aware Profile Picture
    on at
    Unfortunately, that didn't achieve what I wanted.
     
    I have a question that identifies an entity in the user response.
     
     
    How can I convert that to text as the entire user question and then pass it to the Generative Actions step (shown below) if the entity is not recognised?

    So basically, if the user asks a question not related to timesheets (not recognised by the entity) then I want it so that it captures that user question as a string and gives it to the 'Create Generative Answers' step to provide the answer instead.

    How do I do this?  I get an error right now.


    Many thanks.

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 599

#2
chiaraalina Profile Picture

chiaraalina 170 Super User 2026 Season 1

#3
deepakmehta13a Profile Picture

deepakmehta13a 118

Last 30 days Overall leaderboard