Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
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

  • AlpKaraosman Profile Picture
    17 on at
    Re: options from a list variable and adding a new value to a table variable

    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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Copilot Studio - General

#1
Pablo Roldan Profile Picture

Pablo Roldan 33

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 25

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard