I'm trying to figure out how to do a filter query to pull in everything from a SharePoint list that is not in a completed status (no matter the date), and then I need to somehow add in a filter to also include anything in a completed status that has a decision date (that's the name of the column) from the past 7 days. Any ideas? I'm pulling the info in and creating a table to send an automated email out once a week to give a team updates on their requests. The main thing I'm trying to achieve is to send a fully inclusive report, but limit the amount of completed items to only those that were completed in the last week.
Solved! Go to Solution.
Hi @meg2
Use the Get Items action with the filter query property to filter the items that are not with the completed status. Add an action named Filter array to filter the output from the Get Items action. Use the below condition
<Source: Date column> <Condition: greater than or equal to> <Value: addDays(utcNow(), -7, 'yyyy-MM-dd'))>
Try it out and let me know.
Hi @meg2
Use the Get Items action with the filter query property to filter the items that are not with the completed status. Add an action named Filter array to filter the output from the Get Items action. Use the below condition
<Source: Date column> <Condition: greater than or equal to> <Value: addDays(utcNow(), -7, 'yyyy-MM-dd'))>
Try it out and let me know.
Hi @meg2 ,
You can consider using Filter Query to filter items, please refer to the following article for more information about the usage of this feature:
https://sharepains.com/2018/11/12/sharepoint-get-items-odata-filter-query/
You also need to use the WDL function to calculate the date seven days ago, and then compare it with the date recorded in the item. Please refer to the following document to understand the Date and time function:
Best Regards,
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
40 | |
36 | |
35 | |
34 | |
27 |
User | Count |
---|---|
39 | |
38 | |
33 | |
31 | |
25 |