cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Multiples OData Filter Query in SP List from PowerApps Trigger

Hello experts,

 

Does anyone knows how to write the formula for OData Filter Query that can filter multiples column based on one "Created By"?

 

I am creating a Flow from a List that have "Date" and "Hours" as multiple entries for each person. My trigger starts from PowerApps (which from the submit button in PowerApps) and follow by Get Items in SharePoint. My List appears as attached picture.

 

Example:

Joe Adam data should only read the dates under his name and hours with respect to the date.

 

PS: i had to convert the date in "daysofWeek" formula since i need to make a weekly variables loop.

 

Right now my flow is not differentiating any "created by" and "date", thus all the "hours" were added up together if the day of the week is the same.

 

Appreciate your help and guide in this... thank you in advance..Capture4.PNGCapture5.PNG

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: Multiples OData Filter Query in SP List from PowerApps Trigger

 

Hi @Siti ,

 

Please refer to the following articles to learn more about the use of Filter Query:

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

https://toddbaginski.com/blog/use-dynamic-odata-filter-values-in-a-microsoft-flow-sharepoint-getitem...

https://blog.ion.works/2019/03/17/common-odata-filters-for-microsoft-flow-a-reference-chart-for-user...

 

You need to use and to combine multiple filters. For Created by field, if you want to rely on user email to filter, please refer to the formula below.

Author/EMail eq 'emailaddress'

Also in Filter Query, we can't use a function to format a field.

 

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.
Highlighted
Frequent Visitor

Re: Multiples OData Filter Query in SP List from PowerApps Trigger

Thank you for the helpful links. I've tried to create the OData Filter Query in my "Get Items - Sharepoint" actions but i still came to dead end, my flow keep on failing.

 

My trigger starts with "Powerapps", and follow by "Get Items - SharePoint". As in my picture, my dynamic content is so limited. I only have:

Getitems_FilterQuery

Sendanemail_To

Ask in PowerApps

 

Can you please help me to write the correct filter query equation. I need to filter "created by" from Sharepoint List and select data only on certain days.

 

Thank you in advance.

 

Highlighted
Community Support
Community Support

Re: Multiples OData Filter Query in SP List from PowerApps Trigger

 

Hi @Siti ,

 

This is the expected result, PowerApps trigger will automatically generate Dynamic content according to the parameters required by the action, but the value of these Dynamic content comes from PowerApps.

You need to assign values to these fields in PowerApps. Please check this online doc and get more details about it:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/using-logic-flows

You can try to make an example of Flow and PowerApps integration based on the documentation.

 

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.

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Users online (7,196)