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

Notifications

Announcements

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,195 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 251 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 201 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard