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 / 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

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 787

#2
Vish WR Profile Picture

Vish WR 300

#3
Haque Profile Picture

Haque 262

Last 30 days Overall leaderboard