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 / FormatDateTime created...
Power Automate
Answered

FormatDateTime createdon column in List Rows Filter rows

(0) ShareShare
ReportReport
Posted on by 187

I am having trouble filtering my list rows because the expression I am using below throws the error;

"'formatDateTime', the value provided for date time string 'createdon' was not valid. The datetime string must match ISO 8601 format.'."

 

I don't know what is wrong with this format since it works perfectly in a compose outside of the List Rows (only difference is created on is inside an apply to each). I tried Item()?['createdon'] but it returns Null

 

Revlock97_0-1689577714852.png

 

div(sub(ticks(formatDateTime(utcNow(),'yyyy-MM-dd')),ticks(formatDateTime('createdon','yyyy-MM-dd'))),864000000000)

 

 
Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @Revlock97 ,

     

    Since it inside Apply to each, please use items('Apply_to_each')?['createdon'] instesd.

     

    Best regards,

  • Revlock97 Profile Picture
    187 on at

    Hi @v-jefferni ,

     

    Sorry my bad, actually it is not inside an apply to each. Before it was in an apply to each so that I may verify which record is 10 days or older

     

    however since I may be handling thousands of data it would be a lot better to just filter the list rows directly. That is why I am try to find the right expression to use in the Filter rows since it is throwing that error. Thank you!

     
  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @Revlock97 ,

     

    I don't think the long expression is appropriate for filter rows. Please try and turn on the Pagination for this action, then use Filter array instead.

     

    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

Forum hierarchy changes are complete!

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

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 378 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 273 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 135 Most Valuable Professional

Last 30 days Overall leaderboard