cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DanielaHo
Advocate IV
Advocate IV

Weekly email digest - new items in SPO list

Hi!
I am trying to build a flow that emails a weekly summary of new items that were added to a SPO list. 

The flow runs successfully but my filter array output is [] although it should return item info?

 

FilterArray:

@greater(ticks(item()?['Created']), variables('reportingPeriodTicks'))

 

Capture.JPG

 

I also tried the following with the same result: 

 

Capture2.JPG

 

I do not really understand where I am going wrong.. ?

 

1 ACCEPTED SOLUTION

Accepted Solutions

I resolved it... the problem was that the 'Get items' was capped at retrieving the first 100 items and stopped afterwards. Going into 'Get items' settings I was able to increase the number of retrieved items, which subsequently returned everything. 🙂

Thanks all for your help though! 

View solution in original post

5 REPLIES 5
v-bacao-msft
Community Support
Community Support

Hi @DanielaHo ,

 

Please try using the following expression in Filter array:

@greater(item()?['Created'], addDays(utcNow(), -7, 'yyyy-MM-dd'))

Image reference:6.PNG

In addition, please ensure that there are qualified items in the list.

Please try again.

 

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.
yashag2255
Dual Super User II
Dual Super User II

Hi, 

 

Can you check what dat you are getting without using the array and the filters? 

daaa.png

Hope this Helps!

Hi All, 

 

Thanks for your responses - however it still is not resolved unfortunately... 

 

@greater(item()?['Created'], addDays(utcNow(), -7, 'yyyy-MM-dd'))

 

I resolved it... the problem was that the 'Get items' was capped at retrieving the first 100 items and stopped afterwards. Going into 'Get items' settings I was able to increase the number of retrieved items, which subsequently returned everything. 🙂

Thanks all for your help though! 

View solution in original post

Hi @DanielaHo ,

 

Try this method:

ticks(item()['Created'])

is greater than

ticks(addDays(utcNow(),-2,'yyyy-MM-dd'))

Image reference:

13.PNG14.PNG

 

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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,338)