Skip to main content

Notifications

Power Automate - Using Connectors
Unanswered

Multiples OData Filter Query in SP List from PowerApps Trigger

(0) ShareShare
ReportReport
Posted on by 9

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

  • v-bacao-msft Profile Picture
    v-bacao-msft on at
    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,

     

  • Siti Profile Picture
    Siti 9 on at
    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.

     

  • v-bacao-msft Profile Picture
    v-bacao-msft on at
    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-getitems-action/

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

     

    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,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard

Featured topics