Let's POWER Automate

From no-code to low-code

Menu
  • Expressions
  • Filters
  • General
  • Application specific solutions
    • Dataverse
    • Excel
    • Forms
    • Outlook
    • Planner
    • Power Apps
    • SharePoint
    • Teams
  • Triggers
  • Ready to use solutions
    • Approval Process Template
    • Task Delegation App
    • The Ultimate Power Automate expressions cheat sheet
    • Power Automate HTTP requests to SharePoint cheat sheet
    • Power Automate HTTP requests to Graph API cheat sheet
  • ABOUT ME
  • Get help with your flow
  • POWER PLATFORM SERVICES
Menu

How to ‘Get changes…’ based on date and time in Power Automate

Posted on October 6, 2021October 6, 2021 by Tom

“I’d like to use the Power Automate action ‘Get changes for an item or a file’ to return all changes since a date, but all I get is error: ‘Invalid format for version input value’.”


The ‘Get changes for an item or a file (properties only)’ action will give you information if a column was updated. You can take changes in the last update, changes between multiple versions, or changes based on a date. The date value is useful if a SharePoint item is updated multiple times a day, or if users edit the item in the display form. In both situations you’ll have multiple item versions during a day, maybe too many to process them one by one. And if there’s a flow connected to those updates, it might be better to run it only once and process all those changes.

The problem is that if you use a date in the ‘Get changes…’ action, you’ll probably end with an error: Bad request. Invalid format for version input value.

Power Automate get changes date

The action doesn’t like the date format.

Format the date in the right format

If this long date and time is not what the action wants, how do you find the right format? Don’t rely on the description, it’s wrong. If you use the recommended format, it’ll fail again.

The best way to find the format is to run the action with an input that works, and then check what it looks like. Let’s use the ‘Modified’ date.

Run the flow and check the flow run history. If the action was successful, then the format must be correct.

That date and time format corresponds to the one below:

year-month-dayThours:minutes:secondsZ

yyyy-MM-ddTHH:mm:ssZ

That’s the format to use for your custom date, e.g. to get all updated columns since the start of the day with the startOfDay(…) expression. It’s a similar expression to the startOfMonth(…), but this one will return start of a day.

startOfDay(utcNow())

Add the desired format:

startOfDay(utcNow(),'yyyy-MM-ddTHH:mm:ssZ')

And use it in the ‘Get changes…’ action to get all today’s changes.

Power Automate get changes date

Summary

If you want to get all changes since a specific date, you must use the format Power Automate wants. In this situation is the action description a bit misleading, but a successful run isn’t. Try to use one of the available dynamic contents, and if the flow runs fine, that’s the format you need. Then just replicate that format for your date.

The solution above described how to get today’s changes, but you can take changes since any date. You just need to use the same format. Once you have the column information, you can extend the flow to take only the updated ones and extract their old and new values.


πŸš€ Master Power Automate

Join 2,000+ professionals getting actionable Power Automate tutorials, solutions, cheat sheets & tips every week.

No spam. Unsubscribe anytime.

2 thoughts on “How to ‘Get changes…’ based on date and time in Power Automate”

  1. Erica Toelle says:
    July 7, 2023 at 4:35 am

    Hi Tom – your blog is extremely helpful, especially for a beginner like me – thank you for spending your time to document these solutions!

    I want to summarize all the modifications to a list item once a day rather than send an email each time the item is modified. Is it ok to use the “when an existing item is modified” trigger to accomplish this, or do I need to use a scheduled cloud flow that runs once a day instead? I plan to use this blog’s startOfDay(utcNow(),’yyyy-MM-ddTHH:mm:ssZ’) expression.

    I successfully created the rest of the flow using your other great articles.

    Reply
    1. Tom says:
      August 12, 2023 at 11:33 pm

      Hello Erica,
      if you want an email once a day then it has to be a scheduled flow – that’s the only way how to guarantee that it’ll run only once. The ‘When an existing item is modified’ trigger would start a flow with every change.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

πŸš€ Master Power Automate

Join 2,000+ professionals getting actionable Power Automate tutorials, solutions, cheat sheets & tips every week.

No spam. Unsubscribe anytime.

Still exchanging emails to get things approved?

Get the Approval Process solution and the Task Delegation App to skip the hard part and deploy an automated, fully functional approval solution on a SharePoint list in minutes! And then the next one, and the next one...

Approval Template Preview ✨ Learn more ✨

Turn ideas into flows with ease!

Grab the complete Power Automate Cheat Sheet Bundleβ€”everything you need to master expressions, SharePoint HTTP calls, and Graph API in Power Automate.

Cheat Sheet Bundle Preview ✨ Get the Cheat Sheets

Didn't find what you were looking for?
Need to adjust a solution to fit your needs?
Or would you just like to get an assistance from somebody with thousands of hours of experience with Power Automate?

Power Automate blogs worth visiting

Damien Bird
Dennis (Expiscornovus)
Paul Murana

©2025 Let's POWER Automate | Theme by SuperbThemes