cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
flowuser-21
Level: Powered On

Fetching data from a list

Hi,

There is a List and a Form:

List has two columns: Name and Department

Form has several fields including Name.

 

When user fills the form, flow compares the Name entered in the form to the corresponding entry in the list and sends an email to a designated user with the name and department entry that was fetched from the list.

 

Problem: My flow is fetching the Name part correctly from the list but instead of fetching the corresponding department, it fetches all the departments from the list.

 

Can someone help me?

 

DN1.PNG

 

DN2.PNG

 

6 REPLIES 6
Super User
Super User

Re: Fetching data from a list

Hi @flowuser-21 

 

I dont see any filter action related to departments?

 

Use Filter Array data operations action to do so

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Community Support Team
Community Support Team

Re: Fetching data from a list

 

Hi @flowuser-21 ,

 

The needs you describe seem to be quite different from the screenshots of the Flow configuration you provide.

The Form you mentioned does not seem to be MS Forms but a SharePoint list, and you want to get a Department with the same name in another list based on the Name contained in one of the lists.

If so, you could consider referring to the configuration below. I have two lists here, one containing Name and the other containing Name and Department.

22.PNG

Besides, for more details on Filter Query, please check this blog:

https://veenstra.me.uk/2018/11/12/microsoft-flow-filter-queries-in-sharepoint-get-items/

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
flowuser-21
Level: Powered On

Re: Fetching data from a list

I created the list in Excel but seems like i'm getting an unexpected error.

 

final.PNG

 

records.PNG

 

 

This is the error:

{
"status": 400,
  "message": "Invalid filter clause: cannot find the 'Name' column.\r\nclientRequestId: 72278621-1d2f-459b-8c35-4c785d988b68\r\nserviceRequestId: 144a752e-b080-4032-819a-daff42b52f21",
  "source": "excelonline-gcc-usgt.azurewebsites.us"
}
 
Community Support Team
Community Support Team

Re: Fetching data from a list

 

Hi @flowuser-21 ,

 

Please try not to configure Filter Query first, then check if the field name in the Body of List rows present in a table is Name.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
flowuser-21
Level: Powered On

Re: Fetching data from a list

 

Inkedlist_rows_LI.jpglist rowsCan you tell me where specifically should I be making changes ? 

 

Community Support Team
Community Support Team

Re: Fetching data from a list

 

Please try not to configure Filter Query first, then check if the field name in the Body of List rows present in a table is Name.

 

Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 361 members 5,297 guests
Please welcome our newest community members: