Search code examples
sharepointbotframeworklookup

Creating a Bot Framework lookup field


I use MS Bot Framework for creating bot for MS Teams.

I need to figure out how to implement a lookup field so that it fetches information through an odata feed from a sharepoint list


Solution

  • I can give little help on the SharePoint side. If possible, you might consider using a filter to limit the amount of values returned:

    Depending on the size that a filtered set returns (if you do so), you might also/instead want to use paging:

    On the botframework side; how do you want to present to the users? Do you want to supply a limited amount of data (say 20 values, for example), then have them give feedback on whether or not that contains the data they need? If so, you can split the data returned from SharePoint into chunks and use a waterfall dialog to accomplish that. Optionally, if you paged data from SharePoint you could; get one page, query user, get another page, query user again, etc. until whatever goal was achieved.

    Unfortunately, you're not giving enough information on the actual goal or what you are expecting this functionality to look like in the end.