cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Siti
Level: Powered On

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
Community Support Team
Community Support Team

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.
Siti
Level: Powered On

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.

 

Community Support Team
Community Support Team

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,137)