cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Request sharepoint list data

Hi Guys

 

Is it possible through the use of Atbot (bizzy), sharepoint lists and teams to do the following.

 

I want to setup a flow that when the user requests a bit of information through teams chat that the flow will search through a sharepoint list and then send the data requested.

 

for example if a user messaged in teams "list abn number" or "List IT number" then it would search the sharepoint list for "ABN number or IT Number" and then reply with the requested information.

 

If this is not possible, is there any other way that a user can request information and have a flow search through data and send requested data back.

 

sharepoint list.PNG

 

Thanks for the help

 

- Garret

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
JoeHerres
Resolver I
Resolver I

There are a couple of ways you can do this.  The one proven way (which I just did in about 5 minutes) is to use the List Items action from SharePoint and use the substringof() odata method to find what you are looking for.  For this to work, the column you are searching through cannot be a multiline text field.  This would also mean that you are only searching through that one list and not throughout your whole site.  The flow looks like this:

 

SFlow.PNG

 

After the intent trigger, you ask the user to specify what they are looking for.  Then you use that in the odata filter in the SharePoint List Items action like this:

 

SFlow2.PNG

 

Now, another way you could go about this (I have not proven it out yet) is to use the SharePoint HTTP Request action and use the search API REST endpoint: https://docs.microsoft.com/en-us/sharepoint/dev/general-development/sharepoint-search-rest-api-overv... This will likely return search results back in the form of a JSON payload which you  would use the JSON Parse action to make sense of.

 

Hope this helps!

-joe

View solution in original post

2 REPLIES 2
JoeHerres
Resolver I
Resolver I

There are a couple of ways you can do this.  The one proven way (which I just did in about 5 minutes) is to use the List Items action from SharePoint and use the substringof() odata method to find what you are looking for.  For this to work, the column you are searching through cannot be a multiline text field.  This would also mean that you are only searching through that one list and not throughout your whole site.  The flow looks like this:

 

SFlow.PNG

 

After the intent trigger, you ask the user to specify what they are looking for.  Then you use that in the odata filter in the SharePoint List Items action like this:

 

SFlow2.PNG

 

Now, another way you could go about this (I have not proven it out yet) is to use the SharePoint HTTP Request action and use the search API REST endpoint: https://docs.microsoft.com/en-us/sharepoint/dev/general-development/sharepoint-search-rest-api-overv... This will likely return search results back in the form of a JSON payload which you  would use the JSON Parse action to make sense of.

 

Hope this helps!

-joe

Anonymous
Not applicable

Hi @JoeHerres

 

Thanks for the reply

 

I have just deployed this flow and it works perfectly!!

Your a legend!

 

Thanks

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (4,615)