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 / options from a list va...
Copilot Studio
Unanswered

options from a list variable and adding a new value to a table variable

(0) ShareShare
ReportReport
Posted on by 17

Hi,

I want to able the user to select which of his/her input is more important to him/her. So I want to show the user his/her previous answers as options in a question. There is an option for this in the question node: "options from a list variable". You have to have a table variable beforehand for this option to work. So I am trying to put the previous answers of the user in the table variable if the answers are in a specific format. I used many codes but couldn't be able to put the string variables in the table variable using Power Fx in the formula field. Here is the logic as I found from the internet:

AlpKaraosman_0-1675608153945.png

 

and here are some codes I tried in the formula field of varList variable: (I assigned a table variable beforehand and I am trying to add the values of string variables in it, but it doesn't work.)

 

If (Topic.firstSentenceType = "olay", Concat(Topic.varTable, Topic.firstSentence),
Topic.secondSentenceType = "olay", Concat(Topic.varTable, Topic.secondSentence))

 

Thanks in advance,

Alp

Categories:
I have the same question (0)
  • AlpKaraosman Profile Picture
    17 on at

    an update to my question. This is the last version I could do:

    If(Topic.firstSentenceType = "olay", Concatenate(Topic.VarList, [Topic.firstSentence]), If(Topic.secondSentenceType = "olay", Concatenate(Topic.VarList, [Topic.secondSentence])))
     
    it looks like a table variable at the formula page, but then in the chat bot editor, it looks as unknown type.
     
    AlpKaraosman_0-1675632679520.png

     

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 255 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard