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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Atbot - providing mult...
Power Automate
Unanswered

Atbot - providing multiple choices based on a sharepoint filter

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I am working on a chat bot that will pull granular address information based on whether they reply North, South, East, or west on the question around region.

 

I then have a sharepoint list which has items and a column called Region which has these values in.  What I want to do is then provide a choice back to the user, where if they choose the region the different addresses are displayed as a choice.

 

Example:

 

If they reply North

 

Then it should look at the list and pull back the Address field which will have the North set as the region i.e.

 

Address 1

Address 2

Address 3

 

But it only pulls back Address 1 as a choice.

 

Can anyone help ?

 

region choice.JPG

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,858 Most Valuable Professional on at
    Re: Atbot - providing multiple choices based on a sharepoint filter

    Hi @Anonymous ,

     

    What's your field type for address field in SharePoint list?

     

    Thanks

  • Community Power Platform Member Profile Picture
    on at
    Re: Atbot - providing multiple choices based on a sharepoint filter

    Hey,

     

    Region and address are "Single line of text" types.

  • Community Power Platform Member Profile Picture
    on at
    Re: Atbot - providing multiple choices based on a sharepoint filter

    Hi,

     

    I am getting somewhere with this:

     

    But that is still not the result I want, I want a distinct selection of the items in the North region

     

    flow list items.JPGlist selection.JPG

  • abm abm Profile Picture
    32,858 Most Valuable Professional on at
    Re: Atbot - providing multiple choices based on a sharepoint filter

    Hi @Anonymous 

     

    After the Get Items push the results into an array. Before you push the details check the value exists then do not append the array. 

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

     

    Thanks

  • Community Power Platform Member Profile Picture
    on at
    Re: Atbot - providing multiple choices based on a sharepoint filter

    Still a bit stuck with this:

     

    array.JPG

  • Community Power Platform Member Profile Picture
    on at
    Re: Atbot - providing multiple choices based on a sharepoint filter

     

    Hi,

     

    Ok, so I am getting closer.

     

    I now just want to split each address into a choice button.

     

    The flow looks like this now and the result in teams chat is below

     

    array final.JPGteams result.png

  • abm abm Profile Picture
    32,858 Most Valuable Professional on at
    Re: Atbot - providing multiple choices based on a sharepoint filter

    Hi @Anonymous ,

     

    We are nearly there 🙂

     

    Declare a variable called NewLine as string type. Under the value press the Enter  Key

     

    Loop your array results and use the flow expression 'concat' with your array elements and NewLine. Store the results in another new string variable called 'useroptions'.

     

    Finally get the ouput of useroptions mapped to Choice Values. 

     

    Let me know how it goes.

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

     

    Thanks

     

  • Community Power Platform Member Profile Picture
    on at
    Re: Atbot - providing multiple choices based on a sharepoint filter

    we are so close I can taste it !

     

    Unfortunately, I never got any response out of the "How about one of these" choice section in teams.

     

    Also the list that I get back has to be a distinct list of addresses

     

    array final.JPGteams response.JPG

  • Community Power Platform Member Profile Picture
    on at
    Re: Atbot - providing multiple choices based on a sharepoint filter

    The concat says:

     

    concat(variables('Address_Choice'),variables('NewLine'))
  • Community Power Platform Member Profile Picture
    on at
    Re: Atbot - providing multiple choices based on a sharepoint filter

    Got it working with some further assistance 🙂

     

    What I am trying to do now, is only get distinct values

     

    working.JPG

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 > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard