web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Filtering D365 FinOps ...
Power Automate
Unanswered

Filtering D365 FinOps data by time/date

(0) ShareShare
ReportReport
Posted on by 5

Hi All,

 

I'm attempting to make a flow to retrieve data from D365, filter the results to return only entries from the last 7 days, then update rows in an Excel file. I'm halfway there, but I'm struggling to filter the content.

 

In the filter data operation I have set up (as per the attached screenshot) uses the CreatedDateTime field, then should be refined to the last 7 days as per the expression 'formatDateTime(addDays(utcNow(), -7))'. Running the flow presents an error message (as per seconds screenshot). What is a better way to go about this?

 

Thanks for any help!

Categories:
I have the same question (0)
  • Verified answer
    tj8000 Profile Picture
    21 on at

    Hello,

     

    there was a similar issue raised here: https://powerusers.microsoft.com/t5/Building-Flows/Error-during-flow-Number-of-foreach-items-limit-exceeded-for/m-p/557313#M72702

     

    The solution suggests that this is a limitation based on your licencing plan and you have to change your filter to get less results. Is there a way to reduce your result array by adding another filter? Or maybe you check for the size and if it is over 5000 then you can "split" the array? (A combination of take and skip might be an option here https://learn.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#take, https://learn.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#skip)

  • MaxNicholas Profile Picture
    5 on at

    Hi there,

     

    Thanks very much for the advise, I'll be sure to apply that as it seems like the perfect fit. Also thank you for the links, they're very helpful.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard